Authentication & Scope
Requires theworkspace-users-write ability.
Request
Path Parameters
Body Parameters
Response
200 OK – Role updated successfully.
404 Not Found – User is not a member of this workspace.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Change a user’s role in the workspace.
workspace-users-write ability.
PUT /workspaces/1/users/5/update-role HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
Content-Type: application/json
{
"role": "admin"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | integer | Yes | The workspace ID |
userId | integer | Yes | The user ID to update |
| Parameter | Type | Required | Description |
|---|---|---|---|
role | string | Yes | New role: admin, user, or readonly |
200 OK – Role updated successfully.
{
"message": "Role updated successfully"
}
404 Not Found – User is not a member of this workspace.