update_profile
(**kwargs)¶Updates the properties of a profile. The ProfileId is required for updating a customer profile.
When calling the UpdateProfile API, specifying an empty string value means that any existing value will be removed. Not specifying a string value means that any value already there will be kept.
See also: AWS API Documentation
Request Syntax
response = client.update_profile(
DomainName='string',
ProfileId='string',
AdditionalInformation='string',
AccountNumber='string',
PartyType='INDIVIDUAL'|'BUSINESS'|'OTHER',
BusinessName='string',
FirstName='string',
MiddleName='string',
LastName='string',
BirthDate='string',
Gender='MALE'|'FEMALE'|'UNSPECIFIED',
PhoneNumber='string',
MobilePhoneNumber='string',
HomePhoneNumber='string',
BusinessPhoneNumber='string',
EmailAddress='string',
PersonalEmailAddress='string',
BusinessEmailAddress='string',
Address={
'Address1': 'string',
'Address2': 'string',
'Address3': 'string',
'Address4': 'string',
'City': 'string',
'County': 'string',
'State': 'string',
'Province': 'string',
'Country': 'string',
'PostalCode': 'string'
},
ShippingAddress={
'Address1': 'string',
'Address2': 'string',
'Address3': 'string',
'Address4': 'string',
'City': 'string',
'County': 'string',
'State': 'string',
'Province': 'string',
'Country': 'string',
'PostalCode': 'string'
},
MailingAddress={
'Address1': 'string',
'Address2': 'string',
'Address3': 'string',
'Address4': 'string',
'City': 'string',
'County': 'string',
'State': 'string',
'Province': 'string',
'Country': 'string',
'PostalCode': 'string'
},
BillingAddress={
'Address1': 'string',
'Address2': 'string',
'Address3': 'string',
'Address4': 'string',
'City': 'string',
'County': 'string',
'State': 'string',
'Province': 'string',
'Country': 'string',
'PostalCode': 'string'
},
Attributes={
'string': 'string'
},
PartyTypeString='string',
GenderString='string'
)
[REQUIRED]
The unique name of the domain.
[REQUIRED]
The unique identifier of a customer profile.
A generic address associated with the customer that is not mailing, shipping, or billing.
The first line of a customer address.
The second line of a customer address.
The third line of a customer address.
The fourth line of a customer address.
The city in which a customer lives.
The county in which a customer lives.
The state in which a customer lives.
The province in which a customer lives.
The country in which a customer lives.
The postal code of a customer address.
The customer’s shipping address.
The first line of a customer address.
The second line of a customer address.
The third line of a customer address.
The fourth line of a customer address.
The city in which a customer lives.
The county in which a customer lives.
The state in which a customer lives.
The province in which a customer lives.
The country in which a customer lives.
The postal code of a customer address.
The customer’s mailing address.
The first line of a customer address.
The second line of a customer address.
The third line of a customer address.
The fourth line of a customer address.
The city in which a customer lives.
The county in which a customer lives.
The state in which a customer lives.
The province in which a customer lives.
The country in which a customer lives.
The postal code of a customer address.
The customer’s billing address.
The first line of a customer address.
The second line of a customer address.
The third line of a customer address.
The fourth line of a customer address.
The city in which a customer lives.
The county in which a customer lives.
The state in which a customer lives.
The province in which a customer lives.
The country in which a customer lives.
The postal code of a customer address.
A key value pair of attributes of a customer profile.
PartyType
which accepts any string as input.Gender
which accepts any string as input.dict
Response Syntax
{
'ProfileId': 'string'
}
Response Structure
(dict) --
ProfileId (string) --
The unique identifier of a customer profile.
Exceptions
CustomerProfiles.Client.exceptions.BadRequestException
CustomerProfiles.Client.exceptions.AccessDeniedException
CustomerProfiles.Client.exceptions.ResourceNotFoundException
CustomerProfiles.Client.exceptions.ThrottlingException
CustomerProfiles.Client.exceptions.InternalServerException