Declare the operating hours of a site
PUT/sites/:siteId/dock-calendar/operating-hours
Replaces the whole set of operating-hours rows of the site. A door with rows of its own uses only those; a door
without rows uses the rows whose doorCode is null; no rows at all means 24x7. Refused with 409 hours-conflict-with-appointments (listing the ids) when an active appointment would fall outside the new hours. Idempotent by method. Publishes
DoorOperatingHoursDeclared (analytics stream).
Request
Responses
- 200
- 400
- 409
- 422
- 500
The operating hours are declared.
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.