Schedule a door closure
POST/sites/:siteId/dock-calendar/closures
Closes one door for [from, to). Closures of one door may not overlap (409 overlapping-closure) and a closure may
not cover an active appointment of the door (409 closure-conflicts-with-appointments, listing the appointment
ids). Requires an Idempotency-Key. Publishes DoorClosureScheduled.
Request
Responses
- 201
- 400
- 409
- 422
- 500
The closure is scheduled.
Response Headers
true when this response is the stored answer of an earlier request with the same Idempotency-Key and the same method, path and body (the handler did not run again). Absent on the first execution.
Malformed JSON body, an unknown field, an invalid path, query or header parameter, or a NUL byte in a body.
The appointment or carrier is in the wrong state for the command, the door is booked in an overlapping window, a closure collides, another request changed the aggregate first, or the Idempotency-Key was already used with a different request (idempotency-key-reused).
The request is well formed JSON but a value-object or reference rule refuses it (invalid door code, carrier or window, invalid SCAC, USDOT, MC, carrier name or suspension reason, window in the past, unknown door, door flow mismatch, unknown ASN, missing outbound reference, invalid operating hours or settings).
Unexpected server error.