Replace a DNS record
View as MarkdownFully replaces an existing DNS record identified by recordId.
Full description
Fully replaces an existing DNS record identified by recordId. All writable fields (name, type, data, ttl) must be supplied; partial updates are not supported. Changes are applied synchronously. GoDaddy-managed records (SOA, NS) are read-only and return 409 when targeted.
Authorization
bearerAuth Personal Access Token (PAT). Generate one from the developer dashboard. Pass as: Authorization: Bearer <token>.
In: header
Path Parameters
The domain name in punycode A-label form (for example, example.com). For IDNs, use the punycode representation.
Server-assigned DNS record identifier within the zone.
Header Parameters
Optional client-generated request correlation identifier, propagated across services and returned in the response X-Request-Id header.
uuidRequest Body
application/json
A single DNS resource record within a zone.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/zones/example.com/dns-records/Aad7oqdXCms9mlJvm_m6UFYqmwjyP20H2KBmQHgttK9kGbF_TuI3knsocArQqIv5I0Kq5C0" \ -H "Content-Type: application/json" \ -d '{ "name": "@", "type": "A", "data": "192.0.2.1", "ttl": 3600 }'{ "recordId": "string", "name": "string", "type": "A", "data": "string", "ttl": 600, "priority": 0, "service": "string", "port": 0, "weight": 0, "protocol": "string", "flag": 0, "tag": "string"}Agent & Automation Notes
domains.domain:read, domains.domain:create, domains.dns:update, domains.nameserver:updateRelated
Last updated on
How is this guide?