Create or Update CDP Guest Profile
sitecore_personalize_guest_upsertCreate or update a Sitecore guest profile with contact and address fields by providing guestRef to update or omitting it for a new guest.
Instructions
Creates a new guest profile (POST), or updates an existing one (PUT) when guestRef is provided. Covers the base guest object fields (name, contact info, address, etc.) — for arbitrary custom key/value attributes, use sitecore_personalize_guest_set_data_extension instead, which is a separate Sitecore mechanism.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| state | No | ||
| title | No | ||
| emails | No | One or more email addresses. | |
| gender | No | ||
| street | No | Street address lines, e.g. ['Apt 15', 'West Drive Ave']. | |
| country | No | ISO 3166-1 alpha-2 country code, e.g. 'US'. | |
| guestRef | No | Existing guest reference to update (PUT). Omit to create a new guest (POST). | |
| lastName | No | ||
| postCode | No | ||
| firstName | No | ||
| guestType | No | 'visitor' for anonymous/unidentified, 'customer' for an identified guest. | |
| dateOfBirth | No | ISO 8601 date. | |
| nationality | No | ||
| phoneNumbers | No | ||
| passportExpiry | No | ISO 8601 date. | |
| passportNumber | No |