The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Updating a ConstantContact deletes the list_memberships

SOLVED
Go to solution
Highlighted
Occasional Contributor

Updating a ConstantContact deletes the list_memberships

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:

  • Custom Fields
  • List Memberships
  • Phone Numbers
  • Street Addresses


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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: Updating a ConstantContact deletes the list_memberships

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 

View solution in original post

2 REPLIES 2
Highlighted
Occasional Contributor

Re: Updating a ConstantContact deletes the list_memberships

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

Highlighted
Occasional Contributor

Re: Updating a ConstantContact deletes the list_memberships

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 

View solution in original post

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured