Skip to main content

Permanently retire a location slot

POST 

/locations/:locationCode/decommissionings

Marks the slot Decommissioned. This is a genuine domain command, not a CRUD update, which is why it is modelled as a transition resource (decommissionings) of the slot rather than a PATCH (REST API guideline 1.3 d). A retry with the same Idempotency-Key replays the stored 204 with Idempotency-Replayed: true instead of answering 409. A refusal that can still change (location-slot-not-found for a code not registered yet, concurrent-modification) is not stored: the key is released and the retry executes again.

The transition is one-way in v1: there is no reactivation use case, calling it twice is a 409, and re-registering the same LocationCode afterwards is rejected as a duplicate rather than quietly resurrecting the slot. Publishes LocationSlotDecommissioned. Returns 204 with no body — there is nothing to say beyond "done".

Request​

Responses​

Slot decommissioned. No body.

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.