Skip to main content

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​

The zone after the declaration (or unchanged, for a repeat), in the GET /zones/{zoneId} shape.