Logo
Akamai APIs API Documentation

Create record sets

POST https://{{host}}/config-dns/v2/zones/:zone/recordsets

Creates multiple new record sets on this Zone. If any record set fails to create, for example, because a record set with that name and type already exists, the entire operation fails.

 

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
curl -X POST 'https://undefined/config-dns/v2/zones/:zone/recordsets?accountSwitchKey=' -H 'Content-Type: application/json' -d '{"recordsets":[{"name":"new.example.com","rdata":["www.example.com"],"ttl":300,"type":"CNAME"}]}'

ENDPOINTS