pub struct UpdateContactRequest {
pub body: ContactUpdateRequest,
}Expand description
Update a contact by email or userId. You must provide one of these parameters.
If you want to update a contact’s email address, the contact will first need a userId value. You can then make a request containing the userId field along with an updated email address.
This endpoint will create a contact if a matching contact does not already exist in your audience.
Provide either email or userId to identify the contact you want to update. If both are provided, the system will look for a contact with either a matching email or userId value. If a contact is found for one of the values (e.g. email), the other value (e.g. userId) will be updated. If a contact is not found, a new contact will be created using both email and userId values.
Fields§
§body: ContactUpdateRequestYou can add custom contact properties as keys in this request (of type string, number, boolean or date. See available date formats). Make sure to create the properties in Loops before using them in API calls.
Implementations§
Source§impl UpdateContactRequest
impl UpdateContactRequest
Sourcepub async fn parse_response(req: Response) -> Result<UpdateContactResponse>
pub async fn parse_response(req: Response) -> Result<UpdateContactResponse>
Parse the HTTP response into the response enum.