Change a member's role (admin only)
PUT/api/users/:userId/role
Changes a team member's role. ADMIN-ONLY. The workspace owner's seat cannot be demoted below admin, and the last active admin cannot be demoted (422 with a role field error).
Request
Responses
- 200
- 401
- 403
- 404
- 422
The updated member.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Resource not found (or not visible to the current tenant).
The request failed validation.