DeleteList_st method allows to delete one or more lists in MailUp, with all the related data. For new integrations with MailUp it has to be preferred to similar method MailUpSend.DeleteList

Method parameters


Parameters autoId e listId can be used together or alternatively; the following scenarios are possible:

SOAP Examples

Request

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ws="http://services.mailupnet.it/WS">
   <soap:Header/>
   <soap:Body>
      <ws:DeleteList_st>
         <!--Use accessKey value that is returned by LoginFromId method-->      
         <ws:accessKey>HzAgwRRJaAKBtkgNWpkAuURfV4SxMm6T3HJegRuSkUivKJElNNcmSQe8nqGyoM9</ws:accessKey>
         <ws:listId>2</ws:listId>
         <ws:autoId>MYUNIQUEID</ws:autoId>
      </ws:DeleteList_st>
   </soap:Body>
</soap:Envelope>

 

Response

Response includes ID of deleted list. In case of error "errorCode" is not zero and an error description is provided.

When request specifies a list ID greater than zero only one list is deleted and the response is as follows:

<DeleteList_st>
   <errorCode>0</errorCode>
   <errorDescription></errorDescription>
   <Lists>
      <List Id="2"></List>
   </Lists>
</DeleteList_st>

When request specifies a list ID equal or lower than zero then all the lists with specified "autoId" are deleted and the response is as follows:

<DeleteList_st>
   <errorCode>0</errorCode>
   <errorDescription></errorDescription>
   <Lists>
      <List Id="8"></List>
      <List Id="9"></List>
      <List Id="14"></List>
      <List Id="11"></List>
   </Lists>
</DeleteList_st>