Skip to main content

Save Line Inspection

PUT 

/api/repairs/:repair/lines/:line/inspection

Saves checklist answers on one unit. Answers merge over earlier ones, so you can send one item at a time; a field left out of a row keeps its earlier value. The checklist is stamped complete (with completed_at and completed_by) once every required item is answered, and un-stamped if an answer is cleared. A pass/fail item counts as answered when passed is set, a note item when note is filled, and a photo item when attachment_id is set. Requires the Repairs: Bench & timers permission.

Required scope: repairs:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Fields:

  • template_id (integer, required) — the checklist being answered; must be of the given kind.
  • kind (string, required) — diagnosis or qc.
  • results (array, required, min 1)
  • results.*.item_id (required) — an item ID on that checklist.
  • results.*.passed (boolean, optional, nullable) — pass/fail answer.
  • results.*.note (string, optional, nullable, max 2000)
  • results.*.attachment_id (integer, optional, nullable) — a photo already uploaded to this repair.

Authentication: Bearer token with the repairs:write scope.

Request​

Responses​

OK

Response Headers
    Content-Type