API operation · dns group
POST
/domains/{name}/dns/reset
First published 3 Oct 2026
0.1.0Unchanged since publicationReset a DNS zone to its template
Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsallAnswers200 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 serverParameters
namepath ·DomainNameRequiredzonestring, up to 254 charactersExample
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 sentence400--zone is required400Domain name required400Domain name too long400Invalid domain name400Records for a subdomain live in the zone of <parent>401Authentication required404<name> is neither this domain nor one of its other names404Zone '<name>' not foundNo error of this operation matches.
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/