API Call Name:

v2 Edit Blacklist Monitor

API Call:


Post Variables:
target – the IP address (i.e.:, or IP range (i.e.: –, or IP block (i.e.:, or domain name (i.e.: mydomain.com).
label – the new label for the monitor(s). Can be left empty to remove the label from the targeted monitors.
contact – the new contact list ID for the monitor(s). You can fetch your contact list IDs by using the API Call ‘v1 List Contact Lists’. Can be left empty to keep current contact list.

Sample PHP code to use this API Call:

$api_key = 'YOURKEY'; // Replace with your API Key

$target = ''; // Fill in the target you wish to edit
$label = ''; // Optionally modify the label
$contact = ''; // Optionally change the contact list id

$url = 'https://api.hetrixtools.com/v2/'.$api_key.'/blacklist/edit/';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, ["target" => $target, "label" => $label, "contact" => $contact]);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($curl);

This API Call allows you to modify one or more blacklist monitors at a time, changing their label and/or contact list. It will consume one (1) API Call, regardless of how many monitors you edit at once.

Leave ‘contact’ empty if you wish to keep the current contact list for the targeted monitors.

Leave ‘label’ empty if you wish to remove the current label from the targeted monitors.

You can test out the API Call in our API Explorer:



You can obviously only edit monitors that are already added in your account.