Skip to main content

Declare which location types are legal in which zones

POST 

/placement-rules

Defines a PlacementRule: a LocationType, an Effect (Allow or Deny), and a zone predicate matching on zoneCode, temperatureClass and/or hazmat. Every field set on the predicate must match for it to apply (AND semantics); unset fields are wildcards; at least one must be set.

Evaluation at slot-registration time runs in order: any matching Deny rule naming the slot's LocationType rejects it (Deny always wins); if any matching Allow rule exists for the zone at all, the zone becomes an allow-list and the LocationType must be named by one of them; otherwise the zone is unconstrained. The rejection error always names the specific rule violated.

The referenced LocationType must already exist. Publishes PlacementRuleDefined.

Request​

Responses​

Placement rule defined.

Response Headers
    Idempotency-Replayed

    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.

    Location

    Path of the newly created PlacementRule.