Reading the documentation I see
The contact object is composed of core properties and subresources. By default, V3 API contact response payloads only include the core properties. Subresources can be included by using the include query parameter. Subresources give developers the option to streamline payload size when working with collections of contacts. Here are the contact subresources currently available:
Further down I see:
You can include subresources when updating a contact resource directly in the request payload JSON. Any subresources that you do NOT include in a PUT are preserved
I send
with the proper id : 821c929a-5adf-11e9-a387-d4ae528ec60a
text/xml={"email_address": {"address": "testing@t.t"}, "first_name": "tt","last_name": "tt","update_source": "Contact"}
The status is 200.
My person email is updated but disappears from any list.
Is the documentation incorrect or is there a bug?
Solved! Go to Solution.
i got a quick response from staff
i was missing some fields
{
"email_address": {
"address": "email@address.com",
"permission_to_send": "implicit"
},
"update_source": "Account",
"create_source": "Account",
"first_name": "name",
"last_name": "name"
}
thank you
So i tried adding the list to the body
text/xml={"email_address": {"address": "heresjhonny@amilia.com"}, "first_name": "tt","last_name": "tt","update_source": "Contact","list_memberships": ["2a781bf0-5af7-11e9-8018-d4ae52754dbc","82122d50-5adf-11e9-a387-d4ae528ec60a","f5e163a2-5af5-11e9-b5d4-d4ae527536ce"]}
I get the list back
{
"contact_id" : "821c929a-5adf-11e9-a387-d4ae528ec60a","email_address" : { "address" : "heresjhonny@amilia.com","permission_to_send" : "not_set","created_at" : "2019-04-09T11:52:41-04:00","updated_at" : "2019-04-09T17:05:00-04:00","confirm_status" : "off"},"first_name" : "tt","last_name" : "tt","update_source" : "Contact","create_source" : "Account","created_at" : "2019-04-09T11:52:41-04:00","updated_at" : "2019-04-09T17:05:00-04:00","list_memberships" : [
"2a781bf0-5af7-11e9-8018-d4ae52754dbc","82122d50-5adf-11e9-a387-d4ae528ec60a","f5e163a2-5af5-11e9-b5d4-d4ae527536ce"]}
But when i got to my account in ConstantContact the person is part of no list
i got a quick response from staff
i was missing some fields
{
"email_address": {
"address": "email@address.com",
"permission_to_send": "implicit"
},
"update_source": "Account",
"create_source": "Account",
"first_name": "name",
"last_name": "name"
}
thank you
The holidays have come and gone. For many seasonal businesses, this means the rush of shoppers has decreased as well. Instead of turning off the lights and waiting for spring, make your email marketi...
See Article