Delete whitelist / blacklist

Delete (clear) whitelist / blacklist rules for the specified domain

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

Path parameters

Parameter Type Description Required
domain str Domain name Required

Request parameters

Parameter Type Description Required
action str whitelist or blacklist Required

Response parameters

Parameter Type Description
action str whitelist or blacklist
domain str Domain name
status str Status

Example request (Python)

import requests
import json
from pprint import pprint

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

Example response (JSON)

{'action': 'whitelist', 'domain': 'vonmail.com', 'status': 'deleting'}