Update Privilege
update_privilegeUpdate a privilege, addressed by its key (or id) from list_privileges. Only the fields you pass are changed: newKey (renames it) and description. Roles that grant it keep granting it under the new key, but flag rules and app code that name the OLD key stop matching — update them too. The AUTHENTICATED privilege cannot be renamed. Same as bridge privilege update. 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 | No | Privilege id from list_privileges, instead of key. | |
| app | No | Id of the Bridge app to act on for this call (see list_apps). Omit to use the current app. | |
| key | No | Privilege KEY from list_privileges, e.g. "REPORTS_VIEW". Pass this or id, not both. | |
| newKey | No | Rename the privilege to this key. key addresses it; newKey renames it. | |
| description | No | New description of what the privilege allows. |