Workspace Users
Update Workspace User Role
Requires workspace-users-write
. Update a member’s role.
PUT
Update Workspace User Role
Change a member’s role within a workspace.
Authentication & Scope
Requires the workspace-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 ). |
Example:
Response
200 OK
– Confirmation message.
403 Forbidden
– Token lacks workspace-users-write
or you lack permission.
Authorizations
Personal Access Token
Body
application/json
Response
200
Role updated