Replace every record
Swaps the whole record set in one call, for keeping DNS in a system of your own. At most 200 records. Every record is checked first, so one bad record leaves the zone exactly as it was. The ids are new: these are new records, not edits of the ones they replace.
apiKeyAuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
id*stringapplication/json- body
records*array<>The full new set. An empty list empties the zone
items <= 200A hosted zone's records
application/json- response
A hosted zone's records
records*array<>Every record in the zone
curl -X PUT "https://example.com/v1/domains/dom_01K6XJ4Q8ZT3M9R5V2B7WDHNCA/dns/records" \ -H "Content-Type: application/json" \ -d '{ "records": [ { "name": "www.acme.com", "type": "A", "content": "203.0.113.10" } ] }'{ "records": [ { "id": "dns_01K6XJ4Q8ZT3M9R5V2B7WDHNCA", "name": "www.acme.com", "type": "A", "content": "203.0.113.10", "ttl": 3600, "priority": null, "managedBy": null } ]}Add a record POST
Adds one record to the zone. The record is checked here before the registrar sees any of it: a CNAME at the root or beside another record with the same name, a missing MX priority and a malformed address are each refused with a message naming the record, and nothing is sent upstream.
Change a record PATCH
Changes one record. Send only the fields you want to change. Changing the type to one that has no priority drops the priority with it.