Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.
I want to remove a contact from a list - even if it's the last list, but I don't want to opt-out the contact. This comes from someone hitting a newsletter "unsubscribe" button on the website.
So the documentation says:
To remove a contact from all lists, you need to start with the contact's detail data and simply remove all of the ContactList elements from the ContactLists element, and issue the PUT method on the contact resource:
Removing a contact does not mean that the contact has unsubscribed or opted out of receiving emails. It means the contact simply does not belong to any particular contact list, and can be added back to a list by the account owner. However, this API should not be used if the contact has unsubscribed from receiving all emails. Instead, you must opt-out the contact.
Which looks straightforward. My xml POST request contains:
<link href="/ws/customers/*obfuscated*/contacts/*obfuscated*" rel="edit"/>
<title type="text">Contact: email@example.com</title>
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/*obfuscated*/contacts/*obfuscated*">
<title type="text">Contacts for Customer: *obfuscated*</title>
<link href="contacts" rel="self"/>
which gets the following response:
Error 400: The new contact must contain at least on valid ContactList
Something which would seem to go against the documentation. What am I missing here? Is there a way to remove the last list without opt-out?
... View more