Create Task
POST/contacts/:contactId/tasks
Create Task
Request
Version stringrequired
API Version
Available options
v3contactId stringrequired
Contact Id
- application/json
- Body
- Example (auto)
Bodyrequired
titlestringrequired
Title of the task
bodystring
Body or description of the task
dueDatestringrequired
Due date of the task (ISO 8601 format)
completedbooleanrequired
Whether the task is completed
assignedTostring
User Id to whom the task is assigned
{
"title": "First Task",
"body": "loram ipsum",
"dueDate": "2020-10-25T11:00:00Z",
"completed": true,
"assignedTo": "hxHGVRb1YJUscrCB8eXK"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
taskobject
Task details
{
"task": {
"id": "lJpzYrWdpkC2hX6t2yue",
"title": "test",
"body": "testing",
"assignedTo": "tesTUcmRxWrjqzJS8EjkxNK",
"dueDate": "2021-07-08T02:30:00.000Z",
"completed": true,
"contactId": "lJpzYrWdpkC2hX6t2yue"
}
}