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

/dns/zones

First published 3 Oct 20260.1.0Unchanged since publication

Create a kept DNS zone

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers201 Created

Creates a zone for the administrator to manage independently of any domain or alias. A new zone starts with the server's SOA record, NS record set and glue records. Use --system with the record commands to manage records in the zone.

If name matches an existing automatic zone for the web interface hostname or a nameserver, UrbeStack converts it to a kept zone so it survives changes to the hostname or nameservers. If that automatic zone was previously deleted, UrbeStack restores it as an automatic zone. The response gives the zone name, the creation, conversion and restoration flags, and the publication result.

As a command

Run as root on the server

Request body

JSON ·DnsZoneCreate· 1 field
nameDomainNameRequired
A domain name is case-insensitive and stored in lowercase.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/dns/zones" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "example.com"
  }'
Response · 201 Created
{
  "created": true,
  "kept": true,
  "published": true,
  "reload": "text",
  "restored": true,
  "zone": "text"
}

Errors

8 errors, each a status and a sentence
400--name is required
400Domain name required
400Domain name too long
400Invalid domain name
401Authentication required
409<name> is a hosted name; its zone comes with it
409Zone <name> exists already
409Zone <name> exists already: it belongs to
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/