Update a user account (Admin only)
PUT/api/users/:id
Updates a user's role or resets a local user's password. Password resets and role demotions invalidate active browser sessions (rotating the caller's own session when updating self via browser cookie). Optionally revokes all API tokens for the target user.
Request​
Responses​
- 200
- 400
- 401
- 403
- 404
User updated successfully
Invalid request
Unauthorized
Forbidden
User not found