Add a task
Adds one task about one traveler (travelerId) or one trip (travelersTripId), assigned to the caller unless assignedUserId says otherwise, and publishes crm.task-changed.v1 with action CREATED. Answers the task, named after what it is about (travelerName, or tripName with associatedTripItineraryId). To add the tasks of one of the agency's task templates to a trip, apply the template instead (POST /crm/task-templates/{templateId}/apply). Requires an Idempotency-Key header: a retry with the same key and body answers the same task. Errors: 400 ERROR_BODY_VALIDATION, 404 ERROR_ITEM_NOT_FOUND for a traveler or trip the caller may not write about, 409 CRM_IDEMPOTENCY_CONFLICT for a key used with another body.
Authorization
Header parameters
Request body JSON required
Returns
200
OK
- createdAtstringrequired
When the task was created.
format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ - updatedAtstringrequired
When the task last changed.
format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$