ListsRemovemanycontacts Method - POST

Description

Remove multiple contacts from a specific or all of your list.

Request URL

api.mailjet.com/0.1/listsRemovemanycontacts

Code Sample

<?php
 
# Parameters
$params = array(
    'method' => 'POST',
    'contacts' => 'mail1@example.com,mail2@example.com,mail3@example.com',
    'id' => '123'
);
# Call
$response = $mj->listsRemoveManyContacts($params);
 
# Result
$affected = $response->affected;
$count = $response->total;
 
?>

Parameters

contacts (String, required)
Description: Serialised list of emails
id (Integer, required)
Description: Mailjet's Contact ID

Return

status (String)
Description: Status of the response
affected (Integer)
Description: Amount of contacts successfully deleted.
total (Integer)
Description: Amount of contacts to delete detected.