Update workspace member roles
Update the roles for a workspace member.
This will revoke existing roles not in the new list and add new roles.
By default, this endpoint waits for the roles to propagate before returning.
Use `wait_role_propagation=false` to skip waiting (useful for bulk operations).
Example:
```
PUT /apis/entities/v2/workspaces/ml-team/members/user@example.com
{
"roles": ["Viewer", "Editor"]
}
```
Path parameters
workspace
principal_id
Query parameters
wait_role_propagation
If true, wait for roles to propagate before returning (default: true). Set to false for bulk operations.
Request
This endpoint expects an object.
roles
Updated list of roles for the principal
Response
Successful Response
principal
The principal identifier
roles
List of roles granted to the principal
granted_at
Earliest date when a role was granted to this principal
granted_by
Who granted the earliest role
Errors
422
Unprocessable Entity Error