update_profile
async
¶
update_profile(
domain_name: name,
profile_id: uuid,
*,
config_overrides: Optional[AsyncCustomerProfilesClientConfig] = None,
additional_information: Optional[sensitiveString0To1000] = None,
account_number: Optional[sensitiveString0To255] = None,
party_type: Optional[PartyType] = None,
business_name: Optional[sensitiveString0To255] = None,
first_name: Optional[sensitiveString0To255] = None,
middle_name: Optional[sensitiveString0To255] = None,
last_name: Optional[sensitiveString0To255] = None,
birth_date: Optional[sensitiveString0To255] = None,
gender: Optional[Gender] = None,
phone_number: Optional[sensitiveString0To255] = None,
mobile_phone_number: Optional[sensitiveString0To255] = None,
home_phone_number: Optional[sensitiveString0To255] = None,
business_phone_number: Optional[sensitiveString0To255] = None,
email_address: Optional[sensitiveString0To255] = None,
personal_email_address: Optional[sensitiveString0To255] = None,
business_email_address: Optional[sensitiveString0To255] = None,
address: Optional[UpdateAddress] = None,
shipping_address: Optional[UpdateAddress] = None,
mailing_address: Optional[UpdateAddress] = None,
billing_address: Optional[UpdateAddress] = None,
attributes: Optional[UpdateAttributes] = None,
party_type_string: Optional[sensitiveString0To255] = None,
gender_string: Optional[sensitiveString0To255] = None,
profile_type: Optional[ProfileType] = None,
engagement_preferences: Optional[EngagementPreferences] = None,
) -> UpdateProfileResponse
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.
Parameters:
-
domain_name(name) –The unique name of the domain.
-
profile_id(uuid) –The unique identifier of a customer profile.
-
additional_information(Optional[sensitiveString0To1000], default:None) –Any additional information relevant to the customer’s profile.
-
account_number(Optional[sensitiveString0To255], default:None) –An account number that you have assigned to the customer.
-
party_type(Optional[PartyType], default:None) –The type of profile used to describe the customer.
-
business_name(Optional[sensitiveString0To255], default:None) –The name of the customer’s business.
-
first_name(Optional[sensitiveString0To255], default:None) –The customer’s first name.
-
middle_name(Optional[sensitiveString0To255], default:None) –The customer’s middle name.
-
last_name(Optional[sensitiveString0To255], default:None) –The customer’s last name.
-
birth_date(Optional[sensitiveString0To255], default:None) –The customer’s birth date.
-
gender(Optional[Gender], default:None) –The gender with which the customer identifies.
-
phone_number(Optional[sensitiveString0To255], default:None) –The customer’s phone number, which has not been specified as a mobile, home, or business number.
-
mobile_phone_number(Optional[sensitiveString0To255], default:None) –The customer’s mobile phone number.
-
home_phone_number(Optional[sensitiveString0To255], default:None) –The customer’s home phone number.
-
business_phone_number(Optional[sensitiveString0To255], default:None) –The customer’s business phone number.
-
email_address(Optional[sensitiveString0To255], default:None) –The customer’s email address, which has not been specified as a personal or business address.
-
personal_email_address(Optional[sensitiveString0To255], default:None) –The customer’s personal email address.
-
business_email_address(Optional[sensitiveString0To255], default:None) –The customer’s business email address.
-
address(Optional[UpdateAddress], default:None) –A generic address associated with the customer that is not mailing, shipping, or billing.
-
shipping_address(Optional[UpdateAddress], default:None) –The customer’s shipping address.
-
mailing_address(Optional[UpdateAddress], default:None) –The customer’s mailing address.
-
billing_address(Optional[UpdateAddress], default:None) –The customer’s billing address.
-
attributes(Optional[UpdateAttributes], default:None) –A key value pair of attributes of a customer profile.
-
party_type_string(Optional[sensitiveString0To255], default:None) –An alternative to
PartyTypewhich accepts any string as input. -
gender_string(Optional[sensitiveString0To255], default:None) –An alternative to
Genderwhich accepts any string as input. -
profile_type(Optional[ProfileType], default:None) –Determines the type of the profile.
-
engagement_preferences(Optional[EngagementPreferences], default:None) –Object that defines users preferred methods of engagement.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
BadRequestException–The input you provided is invalid.
-
InternalServerException–An internal service error occurred.
-
ResourceNotFoundException–The requested resource does not exist, or access was denied.
-
ThrottlingException–You exceeded the maximum number of requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_customer_profiles/_services/async_customer_profiles.py
8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 | |