This endpoint allows you to create a task.
You can provide either a group id through the group_id parameter or a group external reference through the group_external_ref attribute.
Do not provide both, as this will result in the request failing.
All datetime fields included in the body parameters need to be specified as ISO8601-formatted date strings .
Datetime fields should follow a “YYYY-MM-DDThh:mm:ss” format.
Authorization
string
default: "none"
required
The authentication token for your request
Body
The id of the group you want to create the task for.
The external reference of the group you want to create the task for.
The external reference of the task.
The due date of the task. Example: 2023-01-01T00:00:00
The reminder date of a task. Example: 2023-01-01T00:00:00
The importance of the task. Possible value: low, normal, high, very_high.
The conversation that led to the creation of a task record.
The tasks’s creator. Please note that if you specify a creator you must specify either:
an identifier or external_ref for the person
OR:
an email address or phone number
a first name or last name
The Travtus internal identifier for the person record that is the task’s creator.
The external reference for the person record that is the task’s creator.
The email address for the person record that is the task’s creator.
The first name for the person record that is the task’s creator.
The last name for the person record that is the task’s creator.
The phone number for the person record that is the task’s creator.
The person assigned to deal with the tasks. Please note that if you specify an assignee you must specify either:
an identifier or external_ref for the person
OR:
an email address or phone number
a first name or last name
The Travtus internal identifier for the person record that is the task’s assignee.
The external reference for the person record that is the task’s assignee.
The email address for the person record that is the task’s assignee.
The first name for the person record that is the task’s assignee.
The last name for the person record that is the task’s assignee.
The phone number for the person record that is the task’s assignee.
The person record of the resident for which the task is being created. Please note that if you specify a resident you must specify either:
an identifier or external_ref for the person
OR:
an email address or phone number
a first name or last name
The Travtus internal identifier for the person record that is the task’s resident.
The external reference for the person record that is the task’s resident.
The email address for the person record that is the task’s resident.
The first name for the person record that is the task’s resident.
The last name for the person record that is the task’s resident.
The phone number for the person record that is the task’s resident.
The identifier of the unit that the task is targeted for.
The external reference of the unit that the task is targeted for.
The description of the task.
Response
The UUID of the request. We handle requests asynchronously, the task update result will be sending
by webhook event. You can use this ID to lookup webhook event on consumer application portal .
The UUID of the created task.
curl --location --request Post 'https://api.travtus.com/task/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
"group_external_ref": "group-1",
"due_datetime": "2023-11-11 20:00:00",
"notes": "Some notes"
}'
200 - Response
401 - Missing Authorization header
401 - Expired Authorization header bearer token value
401 - Invalid Authorization header bearer token value
{
"request_id" : "5dc8327b-ebcb-4185-a0d0-5a5d40c56ed2"
}