Update a traveler
Replaces the sections of a traveler the body names and returns the traveler as it is now. Send the revision you read: a traveler changed since answers 409 CRM_REVISION_CONFLICT. An omitted section is kept, null clears it, and a list replaces the stored one; relationships are written on both travelers, and documents is the whole list of travel documents to keep. Only admins change the advisors. Without expand the answer is the traveler's own fields, with no read beyond the one that checks the traveler; expand adds members exactly as on GET /crm/travelers/{travelerId}, each read once the change is saved. Errors: 400 ERROR_BODY_VALIDATION (a documentId or dateId that is not the traveler's included), 400 ERROR_INVALID_QUERY for an expand name that is not a member, 400 CRM_RELATED_TRAVELER_NOT_FOUND, 403 ERROR_UNAUTHORIZED for an advisor changing the advisors, 404 ERROR_ITEM_NOT_FOUND, 409 CRM_REVISION_CONFLICT.
Authorization
Path parameters
Query parameters
- expandoptionalstring
The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.
minLength: 1
Header parameters
Request body JSON required
Returns
200
OK
- createdAtstringrequired
When the traveler was added, ISO 8601 in UTC.
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 traveler last changed, ISO 8601 in UTC.
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))$