Skip to main content

Record an inspection item (RecordInspectionItem)

PUT 

/inspections/:inspectionId/items/:itemCode

Records what the inspector found at one item of an OPEN inspection: PASS, FAIL or NOT_APPLICABLE (only where the template item has allowNotApplicable, else 422 not-applicable-not-allowed), with an optional note (500 characters) and opaque evidence references (strings that point at photos or documents held elsewhere; at most 20, each at most 256 characters, no binary). Recording again replaces the earlier result. A completed inspection is final: 409 inspection-closed; an item the snapshot does not have is 422 unknown-item. Raises nothing.

Request​

Responses​

The inspection.

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