Get your free beta license ↗
API operation · dns group
POST

/domains/{name}/dns/reset

First published 3 Oct 20260.1.0Unchanged since publication

Reset a DNS zone to its template

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers200 OK

The reset replaces the zone's own records with records from its template, excluding subdomain records and delegations to other zones.

If zone is omitted or empty, the request targets the domain's own zone. Set zone to an alias name to target its zone. An unrelated zone name returns 404. Targeting a subdomain's own zone returns 400. The parent domain's zone holds the subdomain's records.

For customer and reseller requests, UrbeStack verifies that the zone still belongs to the domain's customer when it resets the zone. The response includes the zone name, the counts of records removed and restored, the resulting records, and the publication status.

As a command

Run as root on the server

Parameters

namepath ·DomainNameRequired

Request body

JSON ·DnsReset· 1 field
zonestring, up to 254 characters

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/domains/example.com/dns/reset" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "zone": "text"
  }'
Response · 200 OK
{
  "published": true,
  "records": [
    {
      "content": "text",
      "created_at": "2026-09-09T10:15:00Z",
      "id": 1,
      "managed_key": "text",
      "name": "alice",
      "origin": "yours",
      "priority": 1,
      "server": true,
      "system": true,
      "ttl": 1,
      "type": "A"
    }
  ],
  "reload": "text",
  "removed": 1,
  "restored": 1,
  "zone": "text"
}

Errors

8 errors, each a status and a sentence
400--zone is required
400Domain name required
400Domain name too long
400Invalid domain name
400Records for a subdomain live in the zone of <parent>
401Authentication required
404<name> is neither this domain nor one of its other names
404Zone '<name>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-domains-name-dns-reset/