Delete whitelist / blacklist

Delete (clear) global whitelist / blacklist rules

  • HTTP Method: DELETE
  • URL: https://example.domain.tld/api/v1/antispam/wlbl/global/
  • Require authentication: Yes
  • Permission level required: MasterAdmin

Request parameters

Parameter Type Description Required
action str whitelist or blacklist Required

Response parameters

Parameter Type Description
action str whitelist or blacklist
status str Status

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/antispam/wlbl/global/"
data = {
"action" : "blacklist"
}
r = requests.delete(url, json=data, auth=("admin","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)

Example response (JSON)

{'action': 'blacklist', 'status': 'deleting'}