Add Checklist Item to Task
POST/api/tasks/{id}/checklist
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Task unique ID. |
| description | String | Mandatory Checklist item description. |
| assigned | Number | optional Optional Staff ID to assign this item to. |
| list_order | Number | optional Optional Sort order (defaults to highest + 1). |
curl -X POST "https://yoursite.com/api/tasks/123/checklist" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "description": "..." }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Checklist item added successfully",
"checklist_item_id": 15
} Error-Response:
HTTP/1.1 400 Bad Request
{
"status": false,
"message": "Description is required"
}