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.
repairs:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Fields:
template_id(integer, required) — the checklist being answered; must be of the givenkind.kind(string, required) —diagnosisorqc.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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.