webservices

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.

 

https://api.constantcontact.com/ws/customers/{username}/lists

 

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">
  <id>data&colon;;,</id>
  <title />
  <author />
    <updated>2008-04-16</updated>
    <content type="application/vnd.ctct+xml">
    <ContactList xmlns="http://ws.constantcontact.com/ns/1.0/">
      <OptInDefault>false</OptInDefault>
            <Name>A New List</Name>
            <SortOrder>99</SortOrder>
        </ContactList>
    </content>
</entry>