Replace shared device roles (DESTRUCTIVE)
set_org_rolesReplace an organization's device-role vocabulary atomically. Pass the complete new roles array and the revision from a prior read to prevent concurrent overwrites.
Instructions
Replace an organisation's shared device-role vocabulary. This is a whole-array write: read it with get_org_roles, preserve the entries you still need, and pass back that response's revision. The write fails rather than overwriting a concurrent change. Requires an editor/owner role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Organisation to target: an org id (org_…), slug, or name. Defaults to RAILYARD_ORG, or to your first (personal) org if that is unset. Use list_orgs to see the options. | |
| roles | Yes | The complete new shared device-role vocabulary. | |
| revision | Yes | The quoted numeric ETag returned by the matching read tool, for example "7". |