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

Parameters: update_task_status
NameTypeDescription
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
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"}'
Python
result = client.call("aroflo", "update_task_status", {"task_id":"task_8c41d2","status":"status"})
Node.js
const result = await cotlet.call('aroflo', 'update_task_status', {"task_id":"task_8c41d2","status":"status"});
CLI
cotlet call aroflo update_task_status --data '{"task_id":"task_8c41d2","status":"status"}'

Example response

JSON

{
  "task_id": "task_8814",
  "job_number": "J1187",
  "previous_status": "Not Started",
  "status": "In Progress",
  "substatus": null
}

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.