Update Role
update_roleUpdate an existing access role by its id (get the id from list_roles). Only the fields you pass are changed: name, description, privileges, isDefault. NOTE: privileges REPLACES the whole privilege list — read the current list from list_roles first and pass the full desired set, or privileges not included are revoked. isDefault=true makes this the role people get when added to a workspace without a role named (the previous default stops being default); an app always has exactly one default, so to move it pass isDefault=true on the new one rather than false on the old one. set_default_role does the same by role key. What a role can do is only the app's default setup until you have read it here. Control access with a flag rule on a privilege (preferred) or on the role key, never with a hard-coded role check in app code. A privilege rule matches the whole key: privileges contains "REPORTS_VIEW" does not match REPORTS_VIEW_ALL. Before writing app code that consumes this, call get_integration_guide with topic=team and the framework the app uses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Role id from list_roles (this tool addresses roles by id). | |
| app | No | Id of the Bridge app to act on for this call (see list_apps). Omit to use the current app. | |
| name | No | New display name. | |
| isDefault | No | true makes this the default role for people added without a role named. | |
| privileges | No | Full replacement privilege list (omitted privileges are revoked). | |
| description | No | New description. |