Skip to navigation
DNS Firewall ProfileUpdate a DNS firewall profile

Update a DNS firewall profile

Required permissions Learn more

DnsFirewallProfile + Update

Roles: Administrator

Updates an existing DNS firewall profile by ID.

If profile is provided, it is validated before update. Rules use a line-oriented text format: <ACTION> <NAME> [# COMMENT]. Supported actions are ALLOW and DENY. Internationalised (non-ASCII) names are accepted and normalized to Punycode before validation.

Use the dry_run query parameter to validate the profile without persisting changes.

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the /api/v1/authenticate POST request.

Path parameters

dns_firewall_profile_iddoubleRequired
The DNS firewall profile ID

Query parameters

dry_runbooleanOptionalDefaults to false

When set to true, validates the profile rules without persisting changes. Returns validation results only.

Request

At least one property must be present.
namestringOptional
descriptionstringOptional
profilestringOptional

Full rules text; validated on every update request. Each rule follows the syntax: <ACTION> <NAME> [# COMMENT].

profile_file_namestringOptional

Response

DNS firewall profile successfully updated.
PatchDNSFirewallProfileResponseobject
Successful save
OR
PatchDNSFirewallProfileDryRunResponseobject

dry_run=true and validation succeeded

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error