cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Contacts from Lists Using API V3

Occasional Contributor

Remove Contacts from Lists Using API V3

I'm trying to remove a Contact from a Contact List.  I was trying to use activities/remove_list_memberships to accomplish this.  When making a post call to activities/remove_list_memberships with the formatted json below, I keep getting a 400 error.  Is this the correct call to remove 1 contact from 1 contact list?

 

{ 

   "source":{ 
      "list_ids":[ 
         "f6123418-b31b-11e9-a8da-d4ae52733d3a"
],
      "all_active_contacts":true,
      "contact_ids":[ 
         "5142285a-4ae0-11ea-a945-d4ae52733d3a"  
]
},
   "list_ids":[ 
      "f6123418-b31b-11e9-a8da-d4ae52733d3a"
]

}

1 REPLY 1
Highlighted
Moderator

Re: Remove Contacts from Lists Using API V3

Hello @CarolynG105,

 

Thank you for reaching out to Constant Contact's API Support.

 

The JSON you are sending contains all of the elements and some of the are mutually exclusive with others. Please check our API Reference page and look to the right side for the Body Schema to review which items are mutually exclusive.


Regards,
Jimmy D.
Tier II API Support Engineer