Update task status
Set the status and substatus of a task.
PATCH https://cotlet.dev/api/v1/aroflo/tasks/{task_id}/status
write Confirm
Changes the status and returns the old and the new value. Completed means the work is done and ready for invoicing or archiving. Another call with the old status undoes it. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| task_id string required | string | Task ID from list_tasks. |
| status string required | string | Not Started, In Progress, Pending or Completed. |
| substatus string | string | A substatus your site administrator set up. |
Request
curl -X PATCH https://cotlet.dev/api/v1/aroflo/tasks/task_8c41d2/status \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"status"}' result = client.call("aroflo", "update_task_status", {"task_id":"task_8c41d2","status":"status"}) const result = await cotlet.call('aroflo', 'update_task_status', {"task_id":"task_8c41d2","status":"status"}); cotlet call aroflo update_task_status --data '{"task_id":"task_8c41d2","status":"status"}' Example response
{
"task_id": "task_8814",
"job_number": "J1187",
"previous_status": "Not Started",
"status": "In Progress",
"substatus": null
}