Add a Users Secret
POST/v2/users/:userId/secret
Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret.
Required permission:
- user.write
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
- default
The secret was successfully generated.
The request is malformed.
Returned when the user is not authenticated.
Returned when the user does not have permission to access the resource.
The user ID does not exist.
An unexpected error response.