Update User Role
Workspace Users
Update User Role
Change a user’s role in the workspace.
PUT
Update User Role
Authentication & Scope
Requires theworkspace-users-write ability.
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | integer | Yes | The workspace ID |
userId | integer | Yes | The user ID to update |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
role | string | Yes | New role: admin, user, or readonly |
Response
200 OK – Role updated successfully.
404 Not Found – User is not a member of this workspace.Authorizations
Body
application/json
Available options:
admin, user, readonly Response
Role updated
