audiences
Update Contact
Update an existing omni-channel contact.
patch/3.0/audiences/{audience_id}/contacts/{contact_id}
Request
- Base URLhttps://api.mailchimp.com
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://login.mailchimp.com/oauth2/authorizeToken URLhttps://login.mailchimp.com/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
audience_idstring required
The unique ID for the audience.
contact_idstring required
The unique id for the contact.
Query parameters
merge_field_validation_mode'ignore_required_checks' | 'strict'
Defines how merge field validation is handled. When set to ignore_required_checks, the API does not raise an error if required merge fields are missing from the request. When set to strict, the API enforces validation and returns an error if any required merge field is not provided. If this setting is omitted, strict is applied by default.
data_mode'historical' | 'live'
Indicates the data processing mode. In historical mode, contact data changes do not trigger automations, webhooks or single opt-in or double opt-in workflows. In live mode, such changes do trigger them.
Request body
Example request
{
"email_channel": {
"email": "example@freddiemail.com",
"marketing_consent": {
"captured_at": "2024-01-15T10:30:00Z"
}
},
"language": "EN",
"sms_channel": {
"marketing_consent": {
"captured_at": "2024-01-15T10:30:00Z"
},
"sms_phone": "+16155550128"
},
"tags": [
"tag_to_add_1",
"tag_to_add_2"
]
}Response
Example response
{
"audience_id": "773280e405",
"email_channel": {
"email": "example@freddiemail.com",
"hashed_email": "9115d71ba28088047d342e3bcedacd0f",
"marketing_consent": {
"captured_at": "2024-01-15T10:30:00Z"
}
},
"id": "7CCF816ADF6CE1B11AE09BB024A02B9B",
"language": "en",
"sms_channel": {
"marketing_consent": {
"captured_at": "2024-01-15T10:30:00Z"
},
"sms_phone": "+14045550102",
"hashed_sms_phone": "0572084e1f8288816f02cdb7bd930c62400bc8aef510adfaa9eec2b995fa7609"
},
"status": "active"
}Changes
No recorded changes to this operation across all 1 revision of this API.