Update my travel profile
Saves the signed-in person's own traveler at the agency they act in, adding it on the first change, and the travelers of the children, spouse or partner they fill in for there, then answers as GET /crm/me does. The caller is a person signed in to Nicer, with their id token as Authorization: Bearer <token>; x-nicer-company names the agency, and a person who belongs to one agency may leave it out. They may change only the sections of TravelerSelfUpdate: identity, contact, documents, important dates and preferences, never the agency's own fields. Send each traveler's revision; the change that adds their own traveler needs name instead. The traveler is saved first and then each family member in the order sent: a refusal stops there and keeps what was saved before it. Errors: 400 ERROR_BODY_VALIDATION, 400 ERROR_COMPANY_REQUIRED without an agency, 401 when the token is missing or invalid, 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to, 404 ERROR_ITEM_NOT_FOUND for a family member they may not fill in for, 409 CRM_REVISION_CONFLICT.
Authorization
Header parameters
Request body JSON required
- familyoptionalarray ofobject
Changes to the family members the person may fill in for, at most 10, saved one after the other in the order sent.
- updateobjectrequired
The change to the family member's traveler, with the revision read.
- addressoptional
The postal address; null clears it.
}Any of the following:
- PersonAddress
- address1stringrequiredmaxLength: 200 · minLength: 1
- citystringrequiredmaxLength: 100 · minLength: 1
- countryCodestringrequiredpattern: ^[A-Z]{2}$
- postalCodestringrequiredmaxLength: 20 · minLength: 1
- stateCodestringrequiredmaxLength: 100 · minLength: 1
- null
- profileoptionalobject
Sections of the travel profile to replace: a section left out is kept and null clears it.
- airoptional}
Any of the following:
- AirPreferences
- cabinClassrequired}
Any of the following:
- stringBUSINESSorECONOMYorFIRSTorPREMIUM_ECONOMY
- null
- mealCoderequired}
Any of the following:
- string
- null
- notesrequired}
Any of the following:
- string
- null
- preferredAirlineCodesarray ofstringrequiredpattern: ^[A-Z0-9]{2,3}$
- preferredAirportCodesarray ofstringrequiredpattern: ^[A-Z]{3}$
- seatrequired}
Any of the following:
- stringAISLEorANYorWINDOW
- null
- null
- hoteloptional}
Any of the following:
- HotelPreferences
- bedrequired}
Any of the following:
- stringANYorKINGorQUEENorTWIN
- null
- floorrequired}
Any of the following:
- stringANYorHIGHorLOW
- null
- notesrequired}
Any of the following:
- string
- null
- preferredBrandsarray ofstringrequiredmaxLength: 80 · minLength: 1
- roomTyperequired}
Any of the following:
- string
- null
- null
- traveleroptionalobject
The change to the person's own traveler at the agency they act in; the first one adds it and must include name.
- addressoptional
The postal address; null clears it.
}Any of the following:
- PersonAddress
- address1stringrequiredmaxLength: 200 · minLength: 1
- citystringrequiredmaxLength: 100 · minLength: 1
- countryCodestringrequiredpattern: ^[A-Z]{2}$
- postalCodestringrequiredmaxLength: 20 · minLength: 1
- stateCodestringrequiredmaxLength: 100 · minLength: 1
- null
- profileoptionalobject
Sections of the travel profile to replace: a section left out is kept and null clears it.
- airoptional}
Any of the following:
- AirPreferences
- cabinClassrequired}
Any of the following:
- stringBUSINESSorECONOMYorFIRSTorPREMIUM_ECONOMY
- null
- mealCoderequired}
Any of the following:
- string
- null
- notesrequired}
Any of the following:
- string
- null
- preferredAirlineCodesarray ofstringrequiredpattern: ^[A-Z0-9]{2,3}$
- preferredAirportCodesarray ofstringrequiredpattern: ^[A-Z]{3}$
- seatrequired}
Any of the following:
- stringAISLEorANYorWINDOW
- null
- null
- hoteloptional}
Any of the following:
- HotelPreferences
- bedrequired}
Any of the following:
- stringANYorKINGorQUEENorTWIN
- null
- floorrequired}
Any of the following:
- stringANYorHIGHorLOW
- null
- notesrequired}
Any of the following:
- string
- null
- preferredBrandsarray ofstringrequiredmaxLength: 80 · minLength: 1
- roomTyperequired}
Any of the following:
- string
- null
- null
Returns
200
OK
- familyarray ofobjectrequired
The family members the person may fill in for at the agency they act in; empty when no agency is selected.
- travelerobjectrequired
The family member's traveler, as the person fills it for them.
- addressrequired
The traveler's postal address; null when nobody gave one.
}Any of the following:
- PersonAddress
- address1stringrequiredmaxLength: 200 · minLength: 1
- citystringrequiredmaxLength: 100 · minLength: 1
- countryCodestringrequiredpattern: ^[A-Z]{2}$
- postalCodestringrequiredmaxLength: 20 · minLength: 1
- stateCodestringrequiredmaxLength: 100 · minLength: 1
- null
- importantDatesarray ofobjectrequired
The dates the agency remembers every year; the birthday is birthDate, not one of these.
- datestringrequired
The date, YYYY-MM-DD. Its month and day come back every year; the year is the first one.
format: date · 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])))$
- profileobjectrequired
The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets.
- airrequired}
Any of the following:
- AirPreferences
- cabinClassrequired}
Any of the following:
- stringBUSINESSorECONOMYorFIRSTorPREMIUM_ECONOMY
- null
- mealCoderequired}
Any of the following:
- string
- null
- notesrequired}
Any of the following:
- string
- null
- preferredAirlineCodesarray ofstringrequiredpattern: ^[A-Z0-9]{2,3}$
- preferredAirportCodesarray ofstringrequiredpattern: ^[A-Z]{3}$
- seatrequired}
Any of the following:
- stringAISLEorANYorWINDOW
- null
- null
- hotelrequired}
Any of the following:
- HotelPreferences
- bedrequired}
Any of the following:
- stringANYorKINGorQUEENorTWIN
- null
- floorrequired}
Any of the following:
- stringANYorHIGHorLOW
- null
- notesrequired}
Any of the following:
- string
- null
- preferredBrandsarray ofstringrequiredmaxLength: 80 · minLength: 1
- roomTyperequired}
Any of the following:
- string
- null
- null
- travelerrequired
The person's own traveler at the agency they act in; null before they have one there, or when no agency is selected.
}Any of the following:
- TravelerSelf
- addressrequired
The traveler's postal address; null when nobody gave one.
}Any of the following:
- PersonAddress
- null
- birthDaterequired
Date of birth, YYYY-MM-DD; null when unknown.
}Any of the following:
- string
- null
- companyNamestringrequired
The agency the traveler belongs to.
- contactobjectrequired
The traveler's email and phone, the phone in E.164; each is null when unknown.
- emailrequired}
Any of the following:
- string
- null
- phonerequired}
Any of the following:
- E164Phone
- null
- documentsarray ofobjectrequired
The traveler's travel documents with their full numbers, oldest first.
- expirationDaterequired
The day the document expires, YYYY-MM-DD; null for one that does not.
}Any of the following:
- string
- null
- issuingCountryCoderequired
The country that issued the document, as an ISO 3166-1 alpha-2 country code; null when unknown.
}Any of the following:
- CountryCode
- null
- kindstring·one of 7 valuesrequired
What the document is.
Allowed values: DRIVER_LICENSE, KNOWN_TRAVELER_NUMBER, NATIONAL_ID, PASSPORT, REDRESS_NUMBER, RESIDENCE_PERMIT, VISA - numberstringrequired
The document's number, in full, 1 to 100 characters.
maxLength: 100 · minLength: 1 - documentIdstringrequired
The document's id: send it back in an update to keep or replace this document.
minLength: 1 - labelrequired
What the document is to people, e.g. "ESTA" or "Schengen", 1 to 60 characters; null when it has none.
}Any of the following:
- string
- null
- citizenshipCountryoptional
The citizenship stated on this document, as an ISO 3166-1 alpha-2 country code; it is not always the person's nationality. Null or absent when the document states none.
}Any of the following:
- CountryCode
- null
- issueDateoptional
The day the document was issued, YYYY-MM-DD; null or absent when unknown.
}Any of the following:
- string
- null
- placeOfBirthoptional
The place of birth printed on the document; null or absent when unknown.
}Any of the following:
- string
- null
- placeOfIssueoptional
Where the document was issued; null or absent when unknown.
}Any of the following:
- string
- null
- frequentFlyerProgramsarray ofobjectrequired
Airline loyalty memberships, as a flight reservation carries them.
- airlineIataCodestringrequiredpattern: ^[A-Z0-9]{2,3}$
- memberNumberstringrequiredmaxLength: 100 · minLength: 1
- importantDatesarray ofobjectrequired
The dates the agency remembers every year; the birthday is birthDate, not one of these.
- datestringrequired
The date, YYYY-MM-DD. Its month and day come back every year; the year is the first one.
format: date · 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])))$ - dateIdstringrequired
The date's id: send it back in an update to keep or replace this date.
minLength: 1 - kindANNIVERSARYorOTHERrequired
What kind of date it is.
- labelrequired
What the date is to people, e.g. Wedding anniversary, 1 to 80 characters; null when the kind says enough.
}Any of the following:
- string
- null
- marketingConsentobjectrequired
Whether the traveler agreed to marketing messages, per channel.
- emailbooleanrequired
Whether the traveler agreed to marketing by email.
- smsbooleanrequired
Whether the traveler agreed to marketing by SMS.
- whatsappbooleanrequired
Whether the traveler agreed to marketing on WhatsApp.
- nameobjectrequired
The legal name, as printed on the travel document.
- familyNamestringrequiredmaxLength: 100 · minLength: 1
- givenNamestringrequiredmaxLength: 100 · minLength: 1
- middleNamerequired}
Any of the following:
- string
- null
- nationalityCountryCoderequired
Nationality, as an ISO 3166-1 alpha-2 country code; null when unknown.
}Any of the following:
- CountryCode
- null
- preferredChannelrequired
How the traveler prefers to be contacted; null when they have not said.
}Any of the following:
- PreferredChannel
- null
- preferredLanguagerequired
The language to write to the traveler in, e.g. es or en-US; null when unknown.
}Any of the following:
- LanguageTag
- null
- preferredNamerequired
The name the traveler goes by when it is not their given name; null otherwise.
}Any of the following:
- string
- null
- profileobjectrequired
The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets.
- accessibilityrequired}
Any of the following:
- Accessibility
- null
- airrequired}
Any of the following:
- AirPreferences
- null
- dietaryrequired}
Any of the following:
- Dietary
- null
- emergencyContactsarray ofobjectrequired
- namestringrequiredmaxLength: 200 · minLength: 1
- phonerequired}
Any of the following:
- E164Phone
- null
- relationshiprequired}
Any of the following:
- string
- null
- travelerIdrequired}
Any of the following:
- string
- null
- hotelrequired}
Any of the following:
- HotelPreferences
- null
- interestsrequired}
Any of the following:
- Interests
- null
- loyaltyProgramsarray ofobjectrequired
- numberstringrequiredmaxLength: 255 · minLength: 1
- receiverCodeoptionalstringmaxLength: 255 · minLength: 1
- supplierCodeoptionalstringmaxLength: 255 · minLength: 1
- tieroptionalstringmaxLength: 255 · minLength: 1
- typeoptionalstringmaxLength: 255 · minLength: 1
- petsarray ofobjectrequired
- namestringrequiredmaxLength: 80 · minLength: 1
- notesrequired}
Any of the following:
- string
- null
- speciesstringrequiredmaxLength: 60 · minLength: 1
- weightKgrequired}
Any of the following:
- number
- null
- residenceCountryCoderequired
Country of residence, as an ISO 3166-1 alpha-2 country code; null when unknown.
}Any of the following:
- CountryCode
- null
- revisionintegerrequired
Goes up by one on every change. Send it back with an update, so a change made meanwhile is never overwritten.
maximum: 9007199254740991 · minimum: 1 - sexrequired
The sex marker on the travel document; null when unknown.
}Any of the following:
- ParticipantSex
- null
- travelerIdstringrequired
The traveler's id.
maxLength: 64 · minLength: 1
- null