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

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
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] }
MethodPOST
Path/api/checklists/items/apply-group
GroupChecklists
Sincev1.0.0
Defined inRestApi/Controllers/ChecklistsController.php