put_profile_object

CustomerProfiles.Client.put_profile_object(**kwargs)

Adds additional objects to customer profiles of a given ObjectType.

When adding a specific profile object, like a Contact Record, an inferred profile can get created if it is not mapped to an existing profile. The resulting profile will only have a phone number populated in the standard ProfileObject. Any additional Contact Records with the same phone number will be mapped to the same inferred profile.

When a ProfileObject is created and if a ProfileObjectType already exists for the ProfileObject, it will provide data to a standard profile depending on the ProfileObjectType definition.

PutProfileObject needs an ObjectType, which can be created using PutProfileObjectType.

See also: AWS API Documentation

Request Syntax

response = client.put_profile_object(
    ObjectTypeName='string',
    Object='string',
    DomainName='string'
)
Parameters
  • ObjectTypeName (string) --

    [REQUIRED]

    The name of the profile object type.

  • Object (string) --

    [REQUIRED]

    A string that is serialized from a JSON object.

  • DomainName (string) --

    [REQUIRED]

    The unique name of the domain.

Return type

dict

Returns

Response Syntax

{
    'ProfileObjectUniqueKey': 'string'
}

Response Structure

  • (dict) --

    • ProfileObjectUniqueKey (string) --

      The unique identifier of the profile object generated by the service.

Exceptions

  • CustomerProfiles.Client.exceptions.BadRequestException
  • CustomerProfiles.Client.exceptions.AccessDeniedException
  • CustomerProfiles.Client.exceptions.ResourceNotFoundException
  • CustomerProfiles.Client.exceptions.ThrottlingException
  • CustomerProfiles.Client.exceptions.InternalServerException