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.

400 Error on Creating a New List

Highlighted
Occasional Participant

400 Error on Creating a New List

I am POSTing the following XML to create a new contact list and getting a 400 Bad Request error.


Posting to https://api.constantcontact.com/ws/customers//lists (where is the actual user name).


Can you tell me why I am getting this error?



 


 Thanks!!



<?xml version="1.0" encoding="UTF-8" ?>

<entry xmlns="http://www.w3.org/2005/Atom">

<id>data;,None</id>

<title type="text"> </title>

<author />

<updated>2011-03-18</updated>

<content type="application/vnd.ctct+xml">

<ContactList xmlns="http://ws.constantcontact.com/ns/1.0/">

<OptInDefault>false</OptInDefault>

<Name>Test</Name>

</ContactList>

</content>

</entry>

Malcolm

2 REPLIES 2
Highlighted
Employee

Re: 400 Error on Creating a New List

I believe the issue is the semi-colon in your ID. If you change your id from:


<id>data;,None</id>

 


To:


<id>data:,None</id>

 


I believe this will resolve your issue. Please let me know if this does not work, or if you have any other questions or concerns regarding this. Thanks

David J

Highlighted
Occasional Participant

That was it! Thanks!

That was it! Thanks!

Malcolm

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