Create a task
post/api/v1/tasksCreates a new task and returns the created task's ID upon a successful API call.
Code snippet
curl -X 'POST' \
'https://{yourdomain}/api/v1/tasks' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
"data": {
"subject": "Follow-up Meeting",
"description": "Follow up with the client on the proposed solutions.",
"dueDate": "2025-01-08T18:30:00Z",
"type": {
"id": 1
},
"priority": {
"id": 2
},
"status": {
"id": 3
},
"owner": {
"id": 10
}
}
}'
Query parameters
| skipValidationboolean | A flag indicating whether to bypass specific validations during task creation. If set to true, the system skips checks for required fields and field dependencies. When false (or unspecified), all standard validations are applied. |
Request body
| subjectstring | The title or main objective of the task. | ||
| descriptionstring | Provides additional details or notes about the task. | ||
| dueDatestring | The date and time the task is scheduled to be completed in ISO 8601 format. | ||
typeobject | Represents the category of the task.
| ||
priorityobject | The importance or urgency of the task.
| ||
statusobject | Specifies the task's current stage in the workflow, such as "Not Started", "In Progress", or "Completed".
| ||
ownerobject | The user who is responsible for completing the task.
|
Example response
201 Created
{
"message": "Task created successfully.",
"data": {
"id": 101
}
}