DomainAdmin cascade enable / disable¶
Enable / disable DomainAdmin account and all its dependents (MailUsers of administered domains)
- HTTP Method:
PATCH
- URL:
https://example.domain.tld/api/v1/accounts/cascade/domainadmin/<username>/<action>/
- Require authentication:
Yes
- Permission level required:
MasterAdmin
Path parameters¶
Parameter | Type | Description | Required |
---|---|---|---|
username | str | Account username to modify | Required |
action | str | enable or disable |
Required |
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/accounts/cascade/domainadmin/da1/enable/"
r = requests.patch(url, auth=("admin","long-auth_token-here"))
try:
pprint(r.json())
except:
print(r.text)
print(r.status_code)
Example response (text)¶
204