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_idstringRequiredformat: "uuid"
member_idstringRequiredformat: "uuid"

Request

This endpoint expects an object.
roleenumRequired

New role to assign: admin, editor, or viewer.

Response

Successful Response
datamap from strings to any
metaobject

Errors

422
Unprocessable Entity Error