/domains/{name}/dns/records/{id}
0.1.0Unchanged since publicationUpdate a DNS record
dnsallThe record ID identifies a record in the domain's zone or one of its alias zones. An unknown ID or a record in an unrelated zone returns 404. Targeting a subdomain's own zone returns 400. Use the parent domain in the path to update records in the parent zone.
Supply at least one field. Set ttl to an empty string or null to restore the zone's default TTL. MX and SRV require a priority from 0 to 65535. Changing to a type that uses no priority clears priority. If supplied, content must contain 1 to 4096 characters and exclude U+0000 through U+001F. Invalid content or priority returns 400. A CNAME requires exclusive use of a name below the zone apex. UrbeStack rejects duplicate records.
Editing a template-managed record detaches it from the zone template and leaves the customer responsible for maintaining it. Only administrators can edit records UrbeStack maintains, including delegations and reserved records. Reserved records include apex NS records, records whose first label is _acme-challenge, and A, AAAA, or CNAME records at the server's hostname or its nameserver names. Editing a server record gives the administrator control of the entire record set with that name and type.
For customer and reseller requests, UrbeStack verifies that the zone still belongs to the domain's customer when it updates the record. The response includes the zone name, the updated record, and the publication status.
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/domains/example.com/dns/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
19 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 400Records for a subdomain live in the zone of <parent>401Authentication required403That record belongs to the server404<name> is neither this domain nor one of its other names404Record <id> not found404Zone '<name>' not foundurbestack.com/docs/api/patch-domains-name-dns-records-id/