Apply a Checklist Group to a Task
POST/api/checklists/items/apply-group
Copies every template of the group onto the task as new checklist items, the same way the task detail screen does it.
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| task_id | Number | Mandatory Task ID, must exist |
| group_id | Number | Mandatory Checklist group ID, must exist |
curl -X POST "https://yoursite.com/api/checklists/items/apply-group" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "task_id": "...", "group_id": "..." }' Success-Response:
HTTP/1.1 201 Created
{ "status": 200, "messages": {"success": "The record has been saved."}, "ids": [7, 8, 9] }