Create Standard and Custom Profile
Creates a new standard and custom profile for a customer.
The APIs featured in this task allow you to create either a standard or custom profile for a customer. Typically, when an organization wants customers to have custom profiles, they add a custom profile to the existing standard profile that contains basic information. Ultimately, they function as one combined profile. The endpoint for creating standard and custom profiles is the same; only the request object, or payload, differs. The user object is designed for out-of-the-box, standard attributes, while the user_profile object is for custom attributes.
Sequence Diagram
See the overall flow for this task below.
API Endpoints & Constraints
POST /priv/v1/apps/:api_key/users
POST /priv/v1/apps/:api_key/users/:user_id/models/user_profile
POST /priv/v1/apps/:api_key/external/users/:external_id/models/user_profile
-
If specifying a customer's age, bear in mind that the date of birth must be more than 13 years of age. If it isn't, the profile will not be created and a validation error will be returned.
-
Only one email address can exist for a SessionM customer profile.