Delete thresholds
Delete (clear) per-domain antispam thresholds
- HTTP Method:
DELETE
- URL:
https://example.domain.tld/api/v1/antispam/thresholds/domain/<domain>/
- Require authentication:
Yes
- Permission level required:
MasterAdmin
/ DomainAdmin
Path parameters
Parameter |
Type |
Description |
Required |
domain |
str |
Domain name |
Required |
Response parameters
Parameter |
Type |
Description |
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/thresholds/domain/vonmail.com/"
r = requests.delete(url, auth=("admin","long-auth_token-here"))
try:
pprint(r.json())
except:
print(r.text)
Example response (JSON)
{'domain': 'vonmail.com', 'status': 'deleting'}