Creating a New List

by Administrator on ‎03-25-2011 09:56 AM

A new Contact list is created by making an HTTP POST to the collection URI.




The POST body must contain an Atom entry element that includes the content for the new list. The Content-Type of the request must be set to application/atom+xml. Here is a representative entry:



<entry xmlns="http://www.w3.org/2005/Atom">
  <title />
  <author />
    <content type="application/vnd.ctct+xml">
    <ContactList xmlns="http://ws.constantcontact.com/ns/1.0/">
            <Name>A New List</Name>