Replace record sets
PUT
https://{{host}}/config-dns/v2/zones/:zone/recordsets
Replaces the entire list of record sets that currently exists with the list provided.
Body
PARAM
Key |
Datatype |
Required |
Description |
accountSwitchKey
|
string |
|
(Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).
|
HEADERS
Key |
Datatype |
Required |
Description |
Content-Type
|
string |
|
|
RESPONSES
status
curl -X PUT 'https://undefined/config-dns/v2/zones/:zone/recordsets?accountSwitchKey=' -H 'Content-Type: application/json' -d '{"recordsets":[{"name":"paveldespot.com","rdata":["a33-33.akam.net. hostmaster.akamai.com. 14643123442 43200 7200 604800 7200"],"ttl":86400,"type":"SOA"},{"name":"paveldespot.com","rdata":["example3.paveldespot.net.edgekey.net"],"ttl":20,"type":"AKAMAICDN"},{"name":"paveldespot.com","rdata":["ns222.name.cloud.ibm.com.","ns111.name.cloud.ibm.com."],"ttl":172800,"type":"NS"},{"name":"api1.paveldespot.com","rdata":["api2.paveldespot.com."],"ttl":300,"type":"CNAME"},{"name":"api2.paveldespot.com","rdata":["api.paveldespot.com."],"ttl":300,"type":"CNAME"},{"name":"api3.paveldespot.com","rdata":["api.paveldespot.com."],"ttl":300,"type":"CNAME"},{"name":"api4.paveldespot.com","rdata":["api.paveldespot.com."],"ttl":300,"type":"CNAME"},{"name":"roubrobin.paveldespot.com","rdata":["192.0.2.54","192.0.2.69","192.0.2.213","192.0.2.8"],"ttl":30,"type":"A"}]}'