Update Workspace User Role
Change a member’s role within a workspace.Authentication & Scope
Requires theworkspace-users-write ability and admin privileges in the workspace.
Request
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| workspaceId | number | ID of the workspace. |
| userId | number | ID of the user to update. |
Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| role | string | Yes | New role (admin, user, or readonly). |
Response
200 OK – Confirmation message.
403 Forbidden – Token lacks workspace-users-write or you lack permission.Authorizations
Personal Access Token
Body
application/json
New role for the user.
Available options:
admin, user, readonly Response
Role updated