BoldSales

API Documentation

Update a task

patch/api/v1/tasks/{id}

Updates one or more specified field values for an existing task record, which is identified by its unique ID.

Code snippet

curl -X 'PATCH' \
  'https://{yourdomain}/api/v1/tasks/{id}' \
  -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": "Complete Financial Audit",
      "description": "Review and finalize the quarterly financial audit report.",
      "dueDate": "2024-12-31T05:00:00Z",
      "type": {
        "id": 135300
      },
      "priority": {
        "id": 13
      },
      "status": {
        "id": 1
      },
      "owner": {
        "id": 418
      }
    }
  }'

Path parameters

idintegerRequiredThe unique identifier of the task to update.

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

200 Success

{
  "message": "Task updated successfully.",
  "data": {
    "id": 1234
  }
}