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

Parameters: complete_task
NameTypeDescription
task_id integer required integer Task id from list_tasks.
completed boolean boolean true to complete, false to reopen. Default true.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/freshsales/tasks/1/complete \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("freshsales", "complete_task", {"task_id":1})
Node.js
const result = await cotlet.call('freshsales', 'complete_task', {"task_id":1});
CLI
cotlet call freshsales complete_task --data '{"task_id":1}'

Example response

JSON

{
  "task_id": 8800121,
  "status": "completed"
}

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.