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

/dns/zones/{name}/taken

First published 16 Oct 20260.2.6Unchanged since publication

Take over a DNS record set generated by UrbeStack

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

A record set contains all records with the same name and type in a zone. Eligible sets include apex NS records, nameserver glue, and the IP address and mail records for the server's hostname. Use a name relative to the zone, or @ for the apex.

After takeover, UrbeStack stops generating the set or updating it from server settings. The records have system set to true, and only an administrator can change them. An administrator who edits or successfully deletes a server-generated record also takes over its entire set.

The 201 response includes the zone, name, type, records in the set, and publication outcome. If the administrator already controls the set, the response includes its existing records with taken set to false.

As a command

Run as root on the server

Parameters

namepath ·DomainNameRequired

Request body

JSON ·DnsTake· 2 fields
namestring, up to 200 charactersRequired
Name relative to the zone, with @ representing the zone itself.
typestring, one of A, AAAA, CNAME, MX, TXT, SRV, CAA, NSRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/dns/zones/example.com/taken" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "alice",
    "type": "A"
  }'
Response · 201 Created
{
  "name": "alice",
  "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",
  "taken": true,
  "type": "rebuild",
  "zone": "text"
}

Errors

12 errors, each a status and a sentence
400--<o> is required
400Domain name required
400Domain name too long
400Invalid domain name
400Invalid record name
400Record name required
400Record name too long
400Record type must be one of
400The panel writes no <type> record at <name> in <zone.name>; it is yours already
401Authentication required
404The <type> records at <name> in <zone.name> are not taken over; the panel writes them already
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.2.6 on 16 Oct 2026.
urbestack.com/docs/api/post-dns-zones-name-taken/