Cache clear

Clear postfix (SMTP server) verification cache

  • HTTP Method: POST
  • URL: https://example.domain.tld/api/v1/server/postfix/cache/clear/
  • Require authentication: Yes
  • Permission level required: MasterAdmin

Response

HTTP 204 NO CONTENT (empty string)

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/server/postfix/cache/clear/"
r = requests.post(url, auth=("admin","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)
print(r.status_code)

Example response (text)


204