Secure a docked trailer (SecureTrailer)
POST/trailers/:trailerId/securings
Records that the DOCKED trailer is secured, by a vehicle restraint (RESTRAINT) or wheel chocks (WHEEL_CHOCKS): the dock safety interlock of OSHA 29 CFR 1910.178(k)(1) and ANSI MH30.3 (ADR 0013). Where the site yard policy sets requireSecuringBeforeDoorWork, door work does not start until this is recorded. Securing the same way again changes nothing and answers 200. A trailer that is not DOCKED, or is already secured another way (release it first), is 409 illegal-transition; a trailer with an open move is 409 trailer-has-open-move; a method other than the two is 422 validation. Raises TrailerSecured.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 500
The trailer.
Response Headers
Present, with the value true, only when the answer is a replay of the stored answer of an earlier request with the same Idempotency-Key (a success or a refusal that cannot change; a refusal the same request could pass later is never stored).
Malformed JSON body, an unknown field, a NUL byte, a missing or invalid Idempotency-Key, or an invalid path or query parameter (on the list operations an unknown query parameter, limit, cursor or filter value; on the reports the from/to window; on the yard policy an If-Match that is not an entity tag).
The addressed resource does not exist, or the path carries a NUL character (resource-not-found).
The request conflicts with the state of the yard (an occupied place, an open move, an illegal transition) or reuses an Idempotency-Key. On every POST and PUT except the two sweeps it is also the answer when another request changed the same aggregate first (concurrent-modification); read the resource again and retry with a new Idempotency-Key.
A value or reference rule failed (unknown location, appointment or inspection template, unknown inspection item, invalid carrier, invalid unit number, seal class, hazmat class or UN number, unexplained destination, validation).
Unexpected failure; the detail never leaks internals.