PUT (update) a Contact
The PUT method updates an existing contact. You must include the update_source property in the PUT request payload. To restore a deleted contact you must specify the update_source as Account. When updating any resource using PUT, all properties are updated, overwriting all previous values. Any properties left blank or not included in the request are overwritten with null value - however this does not apply to contact subresources.
Add or change any of the subresources by including them in the PUT request payload. Omitted subresources are not overwritten with null. If the contact being updated is deleted, the contact will be revived. If email_address is specified: <div class="Msg"><p class="note-text"> **Only use this method when a contact gives you their explicit permission to send them an email. It is a violation of anti-spam and telemarketing laws, as well as a serious violation of the Constant Contact Terms of Service to use the Opt-in features of the API to opt a contact back in without his or her own action and consent.</p></div>
If sms_channel is specified: <div class="Msg"><p class="note-text">Only use this method when a contact gives you their explicit permission to send them an SMS. It is a violation of anti-spam and telemarketing laws, as well as a serious violation of the Constant Contact Terms of Service to use the Opt-in features of the API to opt a contact back in without his or her own action and consent.</p></div>
Path parameters
Unique ID of contact to update
Request body
Example request
{
"email_address": {
"address": "dlang@example.com",
"permission_to_send": "implicit",
"created_at": "2016-03-03T10:53:04-05:00",
"updated_at": "2016-03-03T10:56:29-05:00",
"opt_in_date": "2016-01-23T13:48:44.108Z",
"opt_out_source": "Contact",
"opt_out_date": "2016-01-23T13:48:44.108Z",
"opt_out_reason": "I am no longer interested in this service.",
"confirm_status": "confirmed"
},
"first_name": "Debora",
"last_name": "Lang",
"job_title": "Musician",
"company_name": "Acme Corp.",
"birthday_month": 11,
"birthday_day": 24,
"anniversary": "2006-11-15",
"update_source": "Account",
"custom_fields": [
{
"custom_field_id": "1618ae62-4752-11e9-9c8a-fa163e6b01c1",
"value": "Tesla S 2017",
"choice_ids": [
"000001"
]
}
],
"phone_numbers": [
{
"phone_number": "+1-555-555-5555",
"kind": "home"
}
],
"street_addresses": [
{
"kind": "home",
"street": "123 Kashmir Valley Road",
"city": "Chicago",
"state": "Illinois",
"postal_code": "60609",
"country": "United States"
}
],
"list_memberships": [
"07936f78-662a-11eb-af0a-fa163e56c9b0"
],
"taggings": [
"e7ddac60-51da-11eb-b3a4-fa163e6b01c1"
],
"notes": [
{
"note_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2021-05-12T13:48:44.108Z",
"content": "This contact resubscribed on 2021-05-12."
}
],
"sms_channel": {
"full_sms_address": "17815551212",
"sms_channel_consents": [
{
"sms_consent_permission": "explicit",
"consent_type": "promotional_sms",
"consent_medium_details": "IPhone 13 device used to provide consent."
}
]
}
}Response
Contact resource has been updated
Example response
{
"contact_id": "1618ae62-4752-11e9-9c8a-fa163e6b01c1",
"email_address": {
"address": "dlang@example.com",
"permission_to_send": "implicit",
"created_at": "2016-03-03T10:53:04-05:00",
"updated_at": "2016-03-03T10:56:29-05:00",
"opt_in_source": "Contact",
"opt_in_date": "2016-01-23T13:48:44.108Z",
"opt_out_source": "Contact",
"opt_out_date": "2016-01-23T13:48:44.108Z",
"opt_out_reason": "I am no longer interested in this service.",
"confirm_status": "confirmed"
},
"first_name": "Debora",
"last_name": "Lang",
"job_title": "Musician",
"company_name": "Acme Corp.",
"birthday_month": 11,
"birthday_day": 24,
"anniversary": "2006-11-15",
"update_source": "Contact",
"create_source": "Account",
"created_at": "2016-01-23T13:48:44.108Z",
"updated_at": "2016-01-23T13:48:44.108Z",
"deleted_at": "2016-07-08",
"custom_fields": [
{
"custom_field_id": "1618ae62-4752-11e9-9c8a-fa163e6b01c1",
"value": "Tesla S 2017",
"choice_ids": [
"000001"
]
}
],
"phone_numbers": [
{
"phone_number_id": "6eec28a6-1cf5-11ea-859f-fa163e56c9b0",
"phone_number": "+1-555-555-5555",
"kind": "home",
"created_at": "2016-03-03T10:53:04-05:00",
"updated_at": "2016-03-03T10:56:29-05:00",
"update_source": "Account",
"create_source": "Account"
}
],
"street_addresses": [
{
"street_address_id": "977a9a2e-3e00-11ea-804b-fa163e56c9b0",
"kind": "home",
"street": "123 Kashmir Valley Road",
"city": "Chicago",
"state": "Illinois",
"postal_code": "60609",
"country": "United States",
"created_at": "2016-03-03T10:53:04-05:00",
"updated_at": "2016-03-03T10:56:29-05:00"
}
],
"list_memberships": [
"07936f78-662a-11eb-af0a-fa163e56c9b0"
],
"taggings": [
"e7ddac60-51da-11eb-b3a4-fa163e6b01c1"
],
"notes": [
{
"note_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2021-05-12T13:48:44.108Z",
"content": "This contact resubscribed on 2021-05-12."
}
],
"sms_channel": {
"sms_channel_id": "3fa85f64-5712-6245-b3fc-2c963f66bfc6",
"sms_address": "7815551212",
"dial_code": "1",
"country_code": "US",
"update_source": "Contact",
"create_source": "Account",
"sms_channel_consents": [
{
"sms_consent_permission": "explicit",
"consent_type": "promotional_sms",
"opt_in_date": "2016-01-23T13:48:44.108Z",
"opt_out_date": "2016-01-23T13:48:44.108Z",
"advertised_frequency": "1",
"advertised_interval": "monthly",
"created_at": "2016-01-23T13:48:44.108Z",
"updated_at": "2016-01-23T13:48:44.108Z"
}
]
}
}