Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 1 KB

File metadata and controls

71 lines (53 loc) · 1 KB

Checklist

Add checklist item

POST /api/items/:id/checklist

Request body

{
  "version": 2,
  "label": "Write unit tests",
  "parent_id": null
}
Field Type Required
version integer
label string (min 1 char)
parent_id integer — (omit for top-level)

Response 201 — the updated item (same shape as Get item).


Update checklist item

PATCH /api/items/:id/checklist/:cid

Request body

{
  "version": 3,
  "checked": true
}
Field Type Required
version integer
label string
checked boolean

Response 200 — the updated item.


Delete checklist item

DELETE /api/items/:id/checklist/:cid

Cascades to child checklist items.

Request body

{
  "version": 4
}
Field Type Required
version integer

Response 200 — the updated item.