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
| idintegerRequired | The unique identifier of the task to update. |
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
200 Success
{
"message": "Task updated successfully.",
"data": {
"id": 1234
}
}