API referenceSections

Keep a new template; the old one becomes the prior a merge compares with

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/dns/template

Keep a new template; the old one becomes the prior a merge compares with

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • records array<DNSTemplateRecord> required
    • name string required
    • type string required
      Allowed values: "A" "AAAA" "CNAME" "MX" "TXT" "SRV" "CAA"
    • value string required
    • ttl integer optional
    • priority integer optional
    • weight integer optional
    • port integer optional
    • service string optional

      mail: only for accounts with mail

      Allowed values: "" "mail"
Example
{
  "records": [
    {
      "name": "string",
      "type": "A",
      "value": "string",
      "ttl": 0,
      "priority": 0,
      "weight": 0,
      "port": 0,
      "service": ""
    }
  ]
}

Responses

200 Saved

Content type: application/json

  • records array<DNSTemplateRecord> required

    Fields of DNSTemplateRecord are shown above.

  • source string required
    Allowed values: "own" "inherited" "default"
  • updated_at string (date-time) | null required
Example
{
  "records": [
    {
      "name": "string",
      "type": "A",
      "value": "string",
      "ttl": 0,
      "priority": 0,
      "weight": 0,
      "port": 0,
      "service": ""
    }
  ],
  "source": "own",
  "updated_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required