Requires workspace-users-write. Update a member’s role.
workspace-users-write ability and admin privileges in the workspace.
| Parameter | Type | Description |
|---|---|---|
| workspaceId | number | ID of the workspace. |
| userId | number | ID of the user to update. |
| Field | Type | Required | Description |
|---|---|---|---|
| role | string | Yes | New role (admin, user, or readonly). |
200 OK – Confirmation message.
403 Forbidden – Token lacks workspace-users-write or you lack permission.