Apply the template to the chosen zones
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/dns/template/applyApply the template to the chosen zones
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
modestring optionalAllowed values:"merge""replace"zone_idsarray<string> required
Example
{
"mode": "merge",
"zone_ids": [
"string"
]
}Responses
200 Results
Content type: application/json
object
zone_idstring requiredtenant_idstring requiredzonestring requiredproviderstring requiredstatestring requiredchangedboolean requirednamestring requiredRelative to the zone; @ for the zone itself
typestring requiredAllowed values:"A""AAAA""CNAME""MX""TXT""SRV""CAA"valuestring requiredttlinteger requiredpriorityinteger optionalweightinteger optionalportinteger optionalproxiedboolean optionalCloudflare's proxy; A, AAAA and CNAME in Cloudflare zones only (ADR 0035)
Fields of DNSRecord are shown above.
appliedboolean requirederrorstring optional
Example
{
"items": [
{
"zone_id": "string",
"tenant_id": "string",
"zone": "string",
"provider": "string",
"state": "string",
"changed": true,
"add": [
{
"name": "string",
"type": "A",
"value": "string",
"ttl": 0,
"priority": 0,
"weight": 0,
"port": 0,
"proxied": true
}
],
"remove": [
{
"name": "string",
"type": "A",
"value": "string",
"ttl": 0,
"priority": 0,
"weight": 0,
"port": 0,
"proxied": true
}
],
"applied": true,
"error": "string"
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required