Updates an existing task by ID. Only the fields provided in the request body will be updated. All fields are optional for updates.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | The UUID of the task to update |
| Field | Type | Required | Description |
|---|---|---|---|
title | string | No | Task title (minimum 1 character) |
description | string | null | No | Detailed description of the task |
newStatusPosition | number | No | Update status by position in the status configuration (alternative to newStatusName) |
newStatusName | string | No | Update status by name (e.g., โPendienteโ, โEn Progresoโ) (alternative to newStatusPosition) |
dueDate | string | null | No | Due date (ISO 8601 format: YYYY-MM-DD or full datetime). Set to null to remove due date |
dueTime | string | null | No | Due time (HH:MM format, e.g., โ14:30โ) |
timezone | string | null | No | Timezone for due date (e.g., โAmerica/Santiagoโ) |
responsibleIds | string[] | No | Array of user IDs to assign as responsible (replaces all existing assignees) |
aiContactId | string | null | No | Associated contact ID |
aiCustomerId | string | null | No | Associated customer ID |
priority | string | No | Task priority: โ0โ (low), โ1โ (medium), or โ2โ (high) |
newStatusPosition or newStatusName. You cannot use both at the same time.
| Field | Type | Description |
|---|---|---|
id | string (UUID) | Unique identifier for the task |
title | string | Task title |
description | string | Detailed description of the task |
due_timezone | string | null | Timezone for the due date (e.g., โAmerica/Santiagoโ) |
due_at | string | null | Due date and time (ISO 8601 format) |
is_all_day | boolean | Whether the task is an all-day task |
created_at | string | Task creation date (ISO 8601 format) |
ai_contact_id | string | null | Associated contact ID if applicable |
ai_customer_id | string | null | Associated customer ID if applicable |
task_status_config_id | string (UUID) | ID of the status configuration |
priority | number | Task priority: 0 (low), 1 (medium), or 2 (high) |
creator_id | string (UUID) | ID of the user who created the task |
task_responsibles | array | Array of responsible user objects |
status_config | object | null | Custom status configuration object |
newStatusNamenewStatusPositionnewStatusName OR newStatusPosition, not both.
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid task ID or request body |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Task not found or invalid references |
| 500 | Internal Server Error - Something went wrong |
newStatusName or newStatusPosition to update status - donโt use both at the same timedueDate to null to remove the due date from a taskid, created_at, and creator_id cannot be updatednewStatusName OR newStatusPosition, not bothdueDate to null to remove the due date from a tasktask.updated - When any task field is updatedtask.completed - When task status changes to completedtask.reassigned - When responsible users changeThe UUID of the task to update
10, 1, 2 Task updated successfully
The response is of type object.