Create a DNS record for a zone
View as MarkdownCreates a new DNS record in the GoDaddy-managed zone.
Full description
Creates a new DNS record in the GoDaddy-managed zone. Changes are applied synchronously; no operation polling required.
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.
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 POST "https://example.com/zones/example.com/dns-records" \ -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?