Edit a suppression list.

Edit a suppression list with name, brand and file name information


Function

  • editSuppList()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • listId: int
    • ID of the suppression list
  • listName: String
    • name of the list.
  • brandName: String
    • any human readable name used for list purposes
  • type: int
    • suppression list type
  • fileName: String
    • if this was a file-based suppression list, filename should be presented

Return

  • int:
    • existing list id

Exception

  • Exception

Documentation

  • Edit a suppression list with name, brand and filename information

Examples

public void editSuppListSample() throws java.lang.Exception {

        Puresend p = new Puresend();
        PuresendPortType ppt = p.getPuresendHttpsSoap12Endpoint();

        String username = "XXX";
        String password = "XXX";
        int listId = 123456;
        String listname = "sample list name";
        String brandName = "sample brand name";
        String fileName = "fileName";

        int listId = ppt.editSuppList(username, 
                                password,
                                listId,
                                listname,
                                brandName,
                                1,
                                fileName);
}
<?php
include 'puresend.php';

$p = new Puresend();

$editSuppListData = new editSuppList();
$editSuppListData->username = 'XXX';
$editSuppListData->password = 'XXX';
$editSuppListData->listname = "sample list name";
$editSuppListData->brandName = "sample brand name";
$editSuppListData->fileName = "fileName";
$editSuppListData->listId = 123456;

$response = $p->editSuppList($editSuppListData);
var_dump($response);

?>