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

/dns/zones/{name}/reset

First published 3 Oct 20260.1.0Unchanged since publication

Reset a DNS zone

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

UrbeStack replaces the zone's records with records from the zone template, excluding records for subdomains and delegations to other zones from the reset. A server zone has no template and retains only the server's records.

The 200 response includes the zone, the numbers of records removed and restored, the records, and the publication outcome.

As a command

Run as root on the server

Parameters

namepath ·DomainNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/dns/zones/example.com/reset" \
  -H "Authorization: Bearer $TOKEN"
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

6 errors, each a status and a sentence
400--zone is required
400Domain name required
400Domain name too long
400Invalid domain name
401Authentication required
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-dns-zones-name-reset/