Update Member Role
PATCH/workspaces/:workspace_id/members/:user_id
Update a member's role within a workspace. Workspace admin or platform admin access only.
A non-admin caller cannot change their own role, cannot demote a platform admin who holds
workspace_admin in the workspace named "default", and no caller can demote the workspace's
last remaining workspace_admin — each of those leaves the workspace without the access it
needs to be administered.
Returns 404 if the workspace does not exist or the target user is not a member of it. Returns
403 if the caller is not a workspace_admin member of the workspace (or a platform admin).
Returns 422 if role is not a recognized workspace role, or the change is one of the
protected demotions above.
Request
Responses
- 200
- 403
- 404
- 422
Successful Response
Forbidden
Not Found
Unprocessable Entity