Add a checklist item
Add one item to a task's checklist.
POST https://cotlet.dev/api/v1/habitica/tasks/{task_id}/checklist-items
write
Appends the item to the end of the checklist and returns the full checklist. It changes only your own task and you can delete the item in Habitica, so it does not ask for OK by default.
Parameters
| Name | Type | Description |
|---|---|---|
| task_id string required | string | Task ID from list_tasks. |
| text string required | string | Checklist item text. |
Request
curl -X POST https://cotlet.dev/api/v1/habitica/tasks/task_8c41d2/checklist-items \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"text"}' result = client.call("habitica", "add_checklist_item", {"task_id":"task_8c41d2","text":"text"}) const result = await cotlet.call('habitica', 'add_checklist_item', {"task_id":"task_8c41d2","text":"text"}); cotlet call habitica add_checklist_item --data '{"task_id":"task_8c41d2","text":"text"}' Example response
{
"task_id": "4e0b9c12-77a3-4d0f-8b1e-2a6f9d3c5e70",
"checklist": [
{
"item_id": "c1",
"text": "Book the movers",
"done": true
},
{
"item_id": "c2",
"text": "Cancel electricity",
"done": false
},
{
"item_id": "c3",
"text": "Pack the kitchen",
"done": false
}
]
}