Skip to main content

Update Inspection Checklist

PUT 

/api/repairs/inspection-templates/:template

Updates a checklist template. Send only the fields to change; when items is sent it replaces the whole list, so include existing items with their id to keep answers already saved against them. Requires the Repairs: Settings permission.

Required scope: repairs:write

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

Fields:

  • name (string, optional, max 255)
  • kind (string, optional) — diagnosis (done when the unit is opened up) or qc (the quality check before it ships back).
  • product_category_id (integer, optional, nullable) — apply to products in this category.
  • product_id (integer, optional, nullable) — apply to one product. Leave both empty for a general checklist that applies to everything.
  • items (array, optional, 1–100 items) — replaces the item list.
  • items.*.id (integer, optional, min 1) — keep an existing item's ID so saved answers stay linked; new items get the next free ID.
  • items.*.label (string, required, max 255)
  • items.*.type (string, required) — pass_fail, note, photo or photo_required (stored as photo).
  • items.*.required (boolean, optional, default true) — whether the item must be answered before the checklist counts as complete.
  • is_active (boolean, optional, default true)

When a unit is inspected, the most specific active checklist of that kind applies: one for its product, else one for its category, else the general one.

Authentication: Bearer token with the repairs:write scope.

Request​

Responses​

OK

Response Headers
    Content-Type