latestOpenAPI 3.0.32026-08-227451,2751.8 MB

d0fc0114da66

User

Change a workspace member's role

Change a user's role within a workspace. The user must already be a member of the workspace. Available to workspace owners, company owners, and properly permissioned API keys.

patch/workspaces/{workspace_id}/users/{id}

Path parameters

workspace_idstring required

Workspace ID

idstring required

ID of the user whose role should be changed

Headers

If-Matchstring

If-Match header according to http/1.1 spec section 14.24. Allows for enforced atomic updates, to prevent update collisions

Request body

role'owner' | 'editor' | 'viewer' required

The possible values for user role

Response

The user's role in this workspace after applying the update