PATCH
/
v1
/
tasks
/
{id}
/
complete
Mark a task as complete
curl --request PATCH \
  --url https://api.trycomp.ai/v1/tasks/{id}/complete \
  --header 'X-API-Key: <api-key>'
{
  "id": "tsk_abc123def456",
  "title": "Review security policies",
  "description": "Conduct quarterly review of all security policies and procedures",
  "status": "todo",
  "frequency": "daily",
  "department": "none",
  "order": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "lastCompletedAt": {},
  "assigneeId": {},
  "organizationId": "<string>",
  "taskTemplateId": {}
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

id
string
required

Task ID

Example:

"tsk_abc123def456"

Response

200
application/json

Task marked as complete successfully

The response is of type object.