Update Member Role
Change a workspace member's role. Admin only.
Updates the role of an active member to `admin`, `editor`, or `viewer`.
The operation is idempotent — setting a member to their current role
succeeds silently (no error, no duplicate email notification).
Two protections prevent accidental lockouts:
- The workspace owner's role cannot be changed.
- The last remaining admin cannot be demoted (returns 409).
When the role actually changes, the affected member receives an email
notification describing their new permissions.
Authentication
AuthorizationBearer
Clerk JWT token
Path parameters
ws_id
member_id
Request
This endpoint expects an object.
role
New role to assign: admin, editor, or viewer.
Response
Successful Response
data
meta
Errors
422
Unprocessable Entity Error

