Update a custom role
team_update_roleUpdate a role's display name, description, or scope set. Changing scopes invalidates all user sessions holding that role.
Instructions
Update the display name, description, and/or scope set of a customer-owned role. System roles are immutable. HIGH IMPACT when changing scopes: session invalidation fans out to every user holding the role. Only provided fields are changed. Use acct_list_scopes to discover valid scopes. Requires the team:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | Replacement scope set, e.g. ['team:read', 'billing:read']. Replaces the role's entire scope list and invalidates sessions of affected users. | |
| role_id | Yes | Role UUID (find it via team_list_roles) | |
| customer_id | Yes | Your customer UUID (shown in the WARP portal under Settings) | |
| description | No | New free-text description of the role's purpose | |
| display_name | No | New human-readable role name |