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

Parameters: add_checklist_item
NameTypeDescription
task_id string required string Task ID from list_tasks.
text string required string Checklist item text.

Request

cURL
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"}'
Python
result = client.call("habitica", "add_checklist_item", {"task_id":"task_8c41d2","text":"text"})
Node.js
const result = await cotlet.call('habitica', 'add_checklist_item', {"task_id":"task_8c41d2","text":"text"});
CLI
cotlet call habitica add_checklist_item --data '{"task_id":"task_8c41d2","text":"text"}'

Example response

JSON

{
  "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
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.