We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

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

RobertS0822
Participant

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

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

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 Specialist
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.
Developer Portal

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

Visit Page