Some of our customers are experiencing difficulty logging in. We are aware of this issue and are working to resolve it as quickly as we can.

400 Error on Creating a New List

mmenterprise
Regular 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
David_J
Employee

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

mmenterprise
Regular Participant

That was it! Thanks!

Malcolm

Developer Portal

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

Visit Page