This is an older version of the Campaign Monitor API. We strongly encourage you to quit livin' in the past and use the shiny new RESTful version with lots of new functionality. You won't regret it.
List.Update
Update a subscriber list’s details
Parameters and required information
Here’s a list of all the parameters you’ll need to pass to the List.Update method. All of the parameters are required. If you wish to change only some details, the others must be included as they currently are (a call to List.GetDetail might be useful in that regard).
ApiKey
Your API application key. See here for more details.
ListID
The ID of the list to be updated. See here for more details.
Title
The list title, as it will be shown in the application and through the API
UnsubscribePage
The URL to which subscribers will be directed when unsubscribing from the list. If left blank or omitted a generic unsubscribe page is used.
ConfirmOptIn
Either true or false depending on whether the list requires email confirmation or not. Please see the help documentation for more details of what this means.
ConfirmationSuccessPage
Successful email confirmations will be redirected to this URL. Ignored if ConfirmOptIn is false. If left blank or omitted a generic confirmation page is used.
Return Codes
Success
0: Success
The list’s details were successfully updated
Error
100: Invalid API Key
The API key pass was not valid or has expired.
101: Invalid ListID
The ListID value passed in was not valid.
251: List Title Empty
The list title cannot be empty
SOAP 1.1
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.
POST /api/api.asmx HTTP/1.1
Host: api.createsend.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.createsend.com/api/List.Update"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<List.Update xmlns="http://api.createsend.com/api/">
<ApiKey>string</ApiKey>
<ListID>string</ListID>
<Title>string</Title>
<UnsubscribePage>string</UnsubscribePage>
<ConfirmOptIn>boolean</ConfirmOptIn>
<ConfirmationSuccessPage>string</ConfirmationSuccessPage>
</List.Update>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<List.UpdateResponse xmlns="http://api.createsend.com/api/">
<List.UpdateResult>
<Code>int</Code>
<Message>string</Message>
</List.UpdateResult>
</List.UpdateResponse >
</soap:Body>
</soap:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /api/api.asmx/List.Update?ApiKey=string&ListID=string&Title=string&UnsubscribePage=string&ConfirmOptIn=string&ConfirmationSuccessPage=string HTTP/1.1
Host: api.createsend.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length>
<?xml version="1.0" encoding="utf-8"?>
<Result xmlns="http://api.createsend.com/api/">
<Code>int</Code>
<Message>string</Message>
</Result>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /api/api.asmx/List.Update HTTP/1.1
Host: api.createsend.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
ApiKey=string&ListID=string&Title=string&UnsubscribePage=string&ConfirmOptIn=string&ConfirmationSuccessPage=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<Result xmlns="http://api.createsend.com/api/">
<Code>int</Code>
<Message>string</Message>
</Result>