Merge a duplicate into a traveler
Merges duplicateTravelerId into this traveler and returns the traveler that stays: it keeps its values, fills its empty fields from the duplicate and takes its documents, notes, tasks, relationships, trips and account; the duplicate is removed and its id answers as this one. Without expand the answer is the traveler's own fields; expand adds members exactly as on GET /crm/travelers/{travelerId}, read once the merge is done. Requires an Idempotency-Key header: a retry with the same key, duplicate and expand answers the first result. Errors: 400 CRM_MERGE_SAME_TRAVELER, 400 ERROR_INVALID_QUERY for an expand name that is not a member, 404 ERROR_ITEM_NOT_FOUND for either traveler, 409 CRM_IDEMPOTENCY_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))$