POST
/
v1
/
tasks
Create a new task
curl --request POST \
  --url https://api.trycomp.ai/v1/tasks \
  --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

Response

201
application/json

Task created successfully

The response is of type object.