Skip to main content

Set what a trailer carries (ClassifyTrailer)

POST 

/trailers/:trailerId/classifications

Sets the hazard class, the UN number and the temperature-control need of a trailer that is on site (ADR 0014): a full replacement, so a field left out is cleared and {} declares nothing. The same facts again change nothing and answer 200. Classifying a parked trailer does not move it; the placement rules judge the next placement (POST /moves, check-in, and the spot where a move is completed). An unknown hazard class is 422 invalid-hazmat-class, a malformed UN number 422 invalid-un-number, a UN number without a class 422 validation; a departed trailer is 409 illegal-transition.

Request​

Responses​

The trailer.

Response Headers
    Idempotency-Replayed

    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).