Replace shared device-type library (DESTRUCTIVE)
set_org_catalogReplace an organization's device-type library with a full new array. This destructive write removes types not in the catalogue, and uses a revision to prevent overwriting concurrent changes.
Instructions
Replace an organisation's shared device-type library with the given array. DESTRUCTIVE: this is a whole-library write, not a merge — types absent from catalogue are removed. Read the current library with get_org_catalog and send it back with your additions plus its 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. | |
| revision | Yes | The quoted numeric ETag returned by the matching read tool, for example "7". | |
| catalogue | Yes | The complete new library: a JSON array of device types, in the shape get_org_catalog returns. |