Complete or reopen a task
Mark a task completed, or open it again.
POST https://cotlet.dev/api/v1/freshsales/tasks/{task_id}/complete
write
Changes the status of one task you own or share. It touches only the task, and one call with completed set to false undoes it, so it does not wait for your OK by default.
Parameters
| Name | Type | Description |
|---|---|---|
| task_id integer required | integer | Task id from list_tasks. |
| completed boolean | boolean | true to complete, false to reopen. Default true. |
Request
curl -X POST https://cotlet.dev/api/v1/freshsales/tasks/1/complete \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("freshsales", "complete_task", {"task_id":1}) const result = await cotlet.call('freshsales', 'complete_task', {"task_id":1}); cotlet call freshsales complete_task --data '{"task_id":1}' Example response
{
"task_id": 8800121,
"status": "completed"
}