Change a user’s role in the workspace.
workspace-users-write ability.
| 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.
404 Not Found – User is not a member of this workspace.