BoldSales

API Documentation

Create a task

post/api/v1/tasks

Creates 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

skipValidationbooleanA 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

subjectstringThe title or main objective of the task.
descriptionstringProvides additional details or notes about the task.
dueDatestringThe date and time the task is scheduled to be completed in ISO 8601 format.

typeobject

Represents the category of the task.

idintegerRequiredUnique identifier of the 'type' option.

priorityobject

The importance or urgency of the task.

idintegerRequiredUnique identifier of the 'priority' option.

statusobject

Specifies the task's current stage in the workflow, such as "Not Started", "In Progress", or "Completed".

idintegerRequiredUnique identifier of the 'status' option.

ownerobject

The user who is responsible for completing the task.

idintegerRequiredUnique identifier of the assigned task owner.

Example response

201 Created

{
  "message": "Task created successfully.",
  "data": {
    "id": 101
  }
}