Skip to main content

Open an inspection (OpenInspection)

POST 

/trailers/:trailerId/inspections

Opens a compliance inspection of a trailer on site (ADR 0015): a SNAPSHOT of the template version (the latest unless templateVersion is sent) with every item pending, for a gate (PRE_DOCK, PRE_LOAD, PRE_DEPARTURE, or ON_DEMAND, which opens no gate). visitId defaults to the visit the trailer is on. One inspection per trailer, template and gate is OPEN at a time (409 inspection-already-open); a trailer that left is 409 illegal-transition; an unknown template or version is 422 unknown-template; an unknown visit is 404 visit-not-found. Raises nothing: events are raised when the inspection completes.

Request​

Responses​

The inspection, every item pending.

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

    Location

    Path of the inspection, /inspections/{inspectionId}.