Update a user
PUT/api/update_user/:name
Updates the named user's display name, email, SSH key, and roles, and optionally sets a new password if one is provided.
Doubles as the self-service profile edit: any user may update their own display name, email, SSH key, and password without the 'Manage users' permission. Editing someone else's account, or changing role assignments at all - including one's own - requires it, since otherwise every user could grant themselves any permission.
Request
Responses
- 200
- 400
- 403
- 404
- 409
- 422
Successful Response
Name is required, or email address is required or malformed.
Editing another user, or changing role assignments, requires the Administration permission.
User not found
This would leave no user with the Administration permission
Validation Error