Set a site's transfer capability
PUT/sites/:siteCode/transfer-capability
Replaces the site's transfer capability with the full snapshot in the body (ADR-0035). When the snapshot differs from the current one — or no snapshot was ever published — the site's capabilityRevision advances by exactly one and SiteCapabilityChanged is published through the transactional outbox with that revision. Repeating the current snapshot is an idempotent no-op: 200, same revision, no event, so no Idempotency-Key is needed.
Optimistic concurrency (ADR-0025, extended to Site by ADR-0035): a concurrent change of the same site loses with 409 concurrent-modification; re-read and retry. A decommissioned site's capability is frozen (409 site-not-active).
Request
Responses
- 200
- 400
- 404
- 409
- 500
The site's transfer capability after the change (or unchanged, for a repeat).
The body is not JSON, or a field is omitted, null or not a boolean (missing-transfer-capability-field): the body is a full snapshot and an absent field is never read as false.
The named site, zone, aisle, slot, location type or placement rule does not exist.
The site is decommissioned (site-not-active), or another writer changed it between this request's read and write (concurrent-modification).
An unexpected failure, e.g. the datastore is unavailable.