/dns/zones/{name}/records/{id}
0.1.0Unchanged since publicationUpdate a record in a DNS zone
dnsallAdministrators can update records, including delegations, apex NS records, records at or below _acme-challenge, and A, AAAA, or CNAME records for the server's hostname or its nameservers. This operation returns 403 for zones held for a DNS distribution client. Update records in those zones on the client's server.
Supply at least one of name, type, content, ttl, or priority. Set ttl in seconds, or pass null or an empty string to restore the zone's default TTL. MX and SRV records require a priority from 0 to 65535. Changing to any other type clears priority. Supply 1 to 4096 characters in content, excluding U+0000 through U+001F.
A CNAME must be below the apex and have exclusive use of its name. UrbeStack rejects duplicate records. Invalid content or priority returns 400.
Updating a template-managed record detaches it from the zone template and leaves it for the customer to maintain. Updating a server-generated record transfers control of every record with the same name and type in the zone to the administrator. The 200 response includes the zone, the updated record, and the publication outcome.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredidpath ·integerRequiredcontentstring, up to 4096 charactersnamestring, up to 200 characterspriorityinteger, 0 to 65535 or nullttlinteger, 1 to 604800 or nulltypestring, one of A, AAAA, CNAME, MX, TXT, SRV, CAA, NSExample
See the API overview for how to set $API and $TOKEN.curl -sS -X PATCH "$API/dns/zones/example.com/records/1" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"content": "text",
"name": "alice",
"priority": 1,
"ttl": 1,
"type": "A"
}'200 OK{
"published": true,
"record": {
"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",
"zone": "text"
}Errors
16 errors, each a status and a sentence400--<o> is required400<what> must be a number of seconds from 1 to 604800400Content must be text without control characters, at most 4096 characters400Domain name required400Domain name too long400Invalid domain name400Invalid id400Invalid record name400Nothing to change400Priority must be a number from 0 to 65535400Record name required400Record name too long400Record type must be one of 401Authentication required403That record belongs to the server404Zone '<name>' not foundurbestack.com/docs/api/patch-dns-zones-name-records-id/