Declare who may work in a zone
PUT/zones/:zoneId/traffic-mode
Declares the zone's traffic mode (ADR-0049): PEDESTRIAN (people work in it), ROBOT_ONLY (robots work in it; a person enters only under an area restriction) or SHARED (both, under limits). The zone must already exist and must not be Decommissioned. When the mode differs from the current one, ZoneTrafficModeDeclared (new and previous mode) is published through the transactional outbox. Repeating the current mode is an idempotent no-op: 200, no write, no event, so no Idempotency-Key is needed, like the geometry PUTs. An unknown or missing mode is 422 unknown-traffic-mode.
The body is read like every other request body of this API: a property the request schema does not describe is ignored, not refused; a body that cannot be read as one JSON object (empty, not JSON, an array) is 400 malformed-request-body.
None of this is a safety function: a person is protected by the robot's own safety-rated scanner, and the fleet controller — not this context — decides who goes where. This context publishes the structure; routing never changes here.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 500
The zone after the declaration (or unchanged, for a repeat), in the GET /zones/{zoneId} shape.
Malformed input: a body that is not valid JSON, a location code that is not seven [A-Z0-9] segments, a missing required identifier, a query parameter outside its documented enum, an invalid limit / cursor or an undeclared query parameter on a paged collection, or a missing / malformed Idempotency-Key on a POST.
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.
unknown-traffic-mode: the mode is not one of PEDESTRIAN, ROBOT_ONLY, SHARED (missing included). Nothing was written.
An unexpected failure, e.g. the datastore is unavailable.