Register a behavioral zone inside a site's area
POST/sites/:siteCode/zones
Adds a Zone scoped to the given Site. The zone's identity is SITE-AREA-ZONE (e.g. WH1-STOR-AMB), which is exactly the first three segments of every LocationCode inside it. A Zone cannot be registered against an unknown or non-Active Site. The TemperatureClass and Hazmat flag set here are what PlacementRules match on later, so they are behavioral, not descriptive. Publishes ZoneRegistered.
gln (ADR-0045) is an optional GS1 Global Location Number: 13 digits with a valid mod-10 check digit (422 invalid-gln), unique across every site, zone and slot (409 gln-already-assigned).
Request
Responses
- 201
- 400
- 404
- 409
- 422
- 500
Zone registered.
Response Headers
true when this response is the stored answer of an earlier request with the same Idempotency-Key (a 2xx or a refusal that cannot change on a retry); never present on the first execution, and never on a refusal that releases the key.
Path of the newly created Zone.
Malformed input, or the Idempotency-Key header is absent (idempotency-key-required) or not 1-128 printable ASCII characters (idempotency-key-invalid) (ADR 0019).
The named site, zone, aisle, slot, location type or placement rule does not exist.
A state conflict: a code already taken, a GS1 Global Location Number already assigned to another location (gln-already-assigned, ADR-0045), an aisle that already holds an active AutomatedStorage location (automated-storage-already-in-aisle, ADR-0048), a parent that exists but is no longer Active, or a slot already decommissioned. On a POST it is also the answer to an Idempotency-Key reused with a different method, path or body (idempotency-key-reused); the problem type tells the two apart.
Semantically invalid: a placement-rule violation, a gln that is not 13 digits with a valid GS1 check digit (invalid-gln), an unknown spotKind (unknown-spot-kind), or a spotKind on a location whose role is not Yard (spot-kind-not-allowed) (ADR-0045).
An unexpected failure, e.g. the datastore is unavailable.