API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · dns_templates

DNS Template Schema

Schema ID
dns_template
Collection
dns_templates
Permissions
  • Readdns_template_view
  • Createdns_template_create
  • Editdns_template_edit
  • Deletedns_template_delete

Fields

DNS Template Schema

dns_templates4 permissions

Schema for DNS record templates (e.g. Microsoft 365, Google Workspace)

namestringrequired

Template name (e.g. "Microsoft 365")

1–200 characters
descriptionstringrequired

Detailed description of what this template configures

1–2000 characters
providerstringrequired

Service provider this template is for

microsoft365google_workspacezohoprotonmailmailcowcustom
categorystringrequired

Template category

emailhostingsecuritycustom
isSystembooleanrequired

Whether this is a system-provided template (read-only for tenants)

recordsobject[]required

DNS records that will be created when applying this template

typestringrequired

DNS record type (A, AAAA, CNAME, MX, TXT, etc.)

namestringrequired

Record name with optional placeholders (e.g. {{domain}})

max 253 characters
contentstringrequired

Record content with optional placeholders

max 4096 characters
ttlintegerrequired

Time to live in seconds

60 – 86400
priorityintegeroptional

Priority for MX and SRV records

0 – 65535nullable
descriptionstringrequired

Description of what this record does

max 500 characters
variablesobject[]required

Variables that the user must provide when applying this template

keystringrequired

Variable key used in record placeholders (e.g. "verify_token")

1–50 characters
labelstringrequired

Display label for the variable input

1–200 characters
requiredbooleanrequired

Whether this variable must be provided

helpTextstringoptional

Help text explaining where to find this value

max 500 charactersnullable
placeholderstringoptional

Example value shown as placeholder

max 200 charactersnullable
validationstringoptional

Regex pattern for input validation

max 200 charactersnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/dns_templates — List, paginated + filterable
  • GET /api/v1/dns_templates/<id> — Single entity
  • POST /api/v1/dns_templates — Create
  • PATCH /api/v1/dns_templates/<id> — Partial update
  • DELETE /api/v1/dns_templates/<id> — Soft delete
  • GET /api/v1/dns_templates/<id>/timeline — Audit + activities

Search