Request

Fully updates a guest, replacing the entire resource including all the key-value pairs with the data you send in the request.

To update certain key-value pairs only, use the Partially update a guest endpoint instead.

Security
BasicAuth
Path
guestRefstringrequired

The guest reference. This is a unique identifier of the guest record. If you don't know the guest reference, first retrieve guests.

Example:f7aabbca-1c1b-4fc2-be72-3e16294a4f03
Bodyapplication/json
citystring, (title case)

The guest's city.

Example values: "Dublin", "London", "Madrid", "Paris"

Example:"Dublin"
countrystring, (2-letter ISO 3166-1 Alpha-2 country code)

The guest's country.

Example values: "IE", "GB", "ES", "FR"

Example:"IE"
dateOfBirthstring, (date-time)

The guest's date of birth. Validation: Date must be in the past.

Example:"1991-01-01T16:17:16.000Z"
emailsArray of strings

All the email addresses of the guest.

Example:
[ "john.doe@gmail.com" ]
firstNamestring, (title case)

The guest's first name.

Example:"John"
genderstring, (lowercase)

The guest's gender.

Example values: "male", "female", "unknown"

Example:"male"
guestTypestring, (lowercase)

The level of identity obtained. The "traveller" value is only applicable to certain industries.

Enum:"visitor""customer""traveller"
Example:"visitor"
identifiersArray of objects(Identifier)

A list of identifiers for the guest.

lastNamestring, (title case recommended)

The guest's last name.

Example:"Doe"
nationalitystring, (title case)

The guest's nationality.

Example values: "Irish", "British", "Spanish", "French"

Example:"Irish"
passportExpirystring, (date-time)

The expiry date of the guest's passport.

Example:"2025-01-01T00:00:00.000Z"
passportNumberstring, (uppercase)

The passport number of the guest.

Example:"PZ4A9565"
phoneNumbersArray of strings

The phone numberss of the guest.

Example:
[ "+353161123345", "+353161123346" ]
postCodestring, (uppercase)

The guest's postcode.

Example:"D2"
statestring, (title case)

The state (address) of the guest.

Example:"Oregon"
streetArray of strings

The street address of the guest.

Example:
[ "Ashford House", "Tara Street", "Dublin 2" ]
titlestring, (title case)

The title of the guest.

Example values: "Br", "Brigadier", "Capt", "Colonel", "Dame", "Dr", "Elder", "Fr", "General", "Hon", "Judge", "Lord", "Master", "Miss", "Mr", "Mrs", "Ms", "Mstr", "Prof", "Rabbi", "Rev", "Shaikha", "Sheikh", "Sir", "Sister", "Sr"

Example:"Mr"
curl -i -X PUT \
  -u '<username>:<password>' \
  https://api-engage-ap.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03 \
  -H 'Content-Type: application/json' \
  -d '{
    "city": "Dublin",
    "country": "IE",
    "dateOfBirth": "1991-01-01T16:17:16.000Z",
    "emails": [
      "john.doe@gmail.com"
    ],
    "firstName": "John",
    "gender": "male",
    "guestType": "visitor",
    "identifiers": [
      {
        "expiryDate": "2025-01-01T16:17:16.000Z",
        "id": "B7524AE6-CF1C-440F-B1A2-0C9D42F5CB41",
        "provider": "ProfileSystem"
      }
    ],
    "lastName": "Doe",
    "nationality": "Irish",
    "passportExpiry": "2025-01-01T00:00:00.000Z",
    "passportNumber": "PZ4A9565",
    "phoneNumbers": [
      "+353161123345",
      "+353161123346"
    ],
    "postCode": "D2",
    "state": "Oregon",
    "street": [
      "Ashford House",
      "Tara Street",
      "Dublin 2"
    ],
    "title": "Mr"
  }'

Responses

Successful operation

Bodyapplication/json
citystring, (title case)

The guest's city.

Example values: "Dublin", "London", "Madrid", "Paris"

Example:"Dublin"
countrystring, (2-letter ISO 3166-1 Alpha-2 country code)

The guest's country.

Example values: "IE", "GB", "ES", "FR"

Example:"IE"
createdAtstring, (date-time)

The date and time when the resource was created in Sitecore CDP.

Example:"2024-01-01T16:17:16.000Z"
dateOfBirthstring, (date-time)

The guest's date of birth. Validation: Date must be in the past.

Example:"1991-01-01T16:17:16.000Z"
emailstring

The email address of the guest.

Example:"john.doe@gmail.com"
emailsArray of strings

All the email addresses of the guest.

Example:
[ "john.doe@gmail.com" ]
firstNamestring, (title case)

The guest's first name.

Example:"John"
firstSeenstring, (date-time)

The first seen date for the guest.

Example:"2024-01-01T16:17:16.000Z"
genderstring, (lowercase)

The guest's gender.

Example values: "male", "female", "unknown"

Example:"male"
guestTypestring, (lowercase)

The level of identity obtained. The "traveller" value is only applicable to certain industries.

Enum:"visitor""customer""traveller"
Example:"visitor"
hrefstring

The URL of the guest.

Example:"https://api-engage-eu.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03"
identifiersArray of objects(Identifier)

A list of identifiers for the guest.

lastNamestring, (title case recommended)

The guest's last name.

Example:"Doe"
lastSeenstring, (date-time)

The last time the guest interacted with your brand. If the guest is currently online and is interacting with your brand, this returns the date and timestamp of when the current session started.

Example:"2024-01-01T16:17:16.000Z"
modifiedAtstring, (date-time)

The date and time when the resource was updated in Sitecore CDP.

Example:"2024-01-01T16:17:16.000Z"
nationalitystring, (title case)

The guest's nationality.

Example values: "Irish", "British", "Spanish", "French"

Example:"Irish"
passportExpirystring, (date-time)

The expiry date of the guest's passport.

Example:"2025-01-01T00:00:00.000Z"
passportNumberstring, (uppercase)

The passport number of the guest.

Example:"PZ4A9565"
phoneNumbersArray of strings

The phone numbers of the guest.

Example:
[ "+353161123345", "+353161123346" ]
postCodestring, (uppercase)

The guest's zipcode.

Example:"D2"
refstring

The Guest's reference.

Example:"f7aabbca-1c1b-4fc2-be72-3e16294a4f03"
statestring, (title case)

The state (address) of the guest.

Example:"Oregon"
streetArray of strings

The street address of the guest.

Example:
[ "Ashford House", "Tara Street", "Dublin 2" ]
titlestring, (title case)

The title of the guest.

Example values: "Br", "Brigadier", "Capt", "Colonel", "Dame", "Dr", "Elder", "Fr", "General", "Hon", "Judge", "Lord", "Master", "Miss", "Mr", "Mrs", "Ms", "Mstr", "Prof", "Rabbi", "Rev", "Shaikha", "Sheikh", "Sir", "Sister", "Sr"

Example:"Mr"
Response
{ "city": "Dublin", "country": "IE", "createdAt": "2024-01-01T16:17:16.000Z", "dateOfBirth": "1991-01-01T16:17:16.000Z", "email": "john.doe@gmail.com", "emails": [ "john.doe@gmail.com" ], "firstName": "John", "firstSeen": "2024-01-01T16:17:16.000Z", "gender": "male", "guestType": "visitor", "href": "https://api-engage-eu.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03", "identifiers": [ { … } ], "lastName": "Doe", "lastSeen": "2024-01-01T16:17:16.000Z", "modifiedAt": "2024-01-01T16:17:16.000Z", "nationality": "Irish", "passportExpiry": "2025-01-01T00:00:00.000Z", "passportNumber": "PZ4A9565", "phoneNumbers": [ "+353161123345", "+353161123346" ], "postCode": "D2", "ref": "f7aabbca-1c1b-4fc2-be72-3e16294a4f03", "state": "Oregon", "street": [ "Ashford House", "Tara Street", "Dublin 2" ], "title": "Mr" }