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.

How to unsubscribe user from only one list?

SOLVED
Go to solution
Highlighted
Occasional Contributor

How to unsubscribe user from only one list?

Is it possible to unsubscribe a user's email address from just one list.

 

For example:

We have 10 lists and the user's email address is subscribed to 3 of them. We have the user's email and now through the API we want to unsubscribe them from off one of the email list but keep them subscribed to the other two.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Advisor

Re: How to unsubscribe user from only one list?

Hello,

 

You can accomplish this with two API calls.  First, you make a GET to the Contacts Collection API, doc located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-collection.html?method=GET

 

You provide the email address as an additional parameter, and get the contacts information back.  You also now have the Contact's unique id, so you can perform a PUT to the Individual Contact after changing the lists.  The doc on that is located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

 

That will allow you to update the lists a contact is subscribed to.  Hope the information helps.

 

Andrew B.

Constant Contact

API Support

View solution in original post

1 REPLY 1
Highlighted
Regular Advisor

Re: How to unsubscribe user from only one list?

Hello,

 

You can accomplish this with two API calls.  First, you make a GET to the Contacts Collection API, doc located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-collection.html?method=GET

 

You provide the email address as an additional parameter, and get the contacts information back.  You also now have the Contact's unique id, so you can perform a PUT to the Individual Contact after changing the lists.  The doc on that is located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

 

That will allow you to update the lists a contact is subscribed to.  Hope the information helps.

 

Andrew B.

Constant Contact

API Support

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