Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

Using the V3 API to generate a campaign that exists returns a blank error

RobertS0822
Rookie
0 Votes

I am using the endpoint to create a campaign (https://v3.developer.constantcontact.com/api_reference/index.html#!/Email_Campaigns/createEmailCampa...) and when the campaign name already exists I get an error with no error_key and no error_message. I verified the error is name related because the http response that I am getting back is 409. Is this intended?

1 REPLY 1
Aarron_G
Moderator
0 Votes

Hello @RobertS0822,

 

Thank you for bringing this to our attention! The response is intended to include an error_key and error_message. I've reported this to our engineers, to be updated.

 

As you concluded, the 409 error response you received was due to your payload containing a name which was already in use by an existing campaign. As a general reference which may be useful to anyone that comes across this post, our documentation includes a glossary of HTTP response codes, which can be found here: https://developer.constantcontact.com/api_guide/glossary_responses.html

 

Regards,


Aarron G.
API Support Engineer
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up