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.

OPTOUT for PUT call not functioning

Highlighted
Occasional Advisor

OPTOUT for PUT call not functioning

Hi Constant Contact,

 

I'm trying to make a PUT call in the I/O docs and OPTOUT a contact, but the response body continues to say ACTIVE (even though the call succeeds). Any idea why this is happening? I've attached screenshots to show you what I've done, and please let me know if you need more info. Any help you can provide will help greatly.

 

Thanks,

Nick W

PUT call 1.PNG

PUT call 2.PNG

PUT call 3.PNG

PUT call 4.PNG

PUT call 5.PNG

1 REPLY 1
Highlighted
Honored Contributor

Re: OPTOUT for PUT call not functioning

Hello,

 

The reason that changing the OPTOUT status through a PUT request is not working is because that action is separated into a different API call. In order to change a contact to OPTOUT status, you need to make a DELETE request to https://api.constantcontact.com/v2/contacts/CONTACTID

 

If you continue to have any problems, please let us know!

 

Best Regards,

Elijah G.
API Support Engineer
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