Logo
Akamai APIs API Documentation

Upload a master zone file

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

Upload new record set data for this zone in master zone file format. Replaces any existing record sets. This operation applies to primary zones and secondary zones. See RFC 1035 section 5 and RFC 1034 section 3.6.1 for more information. Zone files can contain only US-ASCII characters 0–127. Where allowed, you can encode high-order ASCII characters, 128+, with a backslash plus a three-digit decimal number representing the byte value. For example, \233 instead of é. AKAMAICDN and AKAMAITLC records can't be represented in this format. Uploading a zone file doesn't affect these records.

 

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/zone-file?accountSwitchKey=' -H 'Content-Type: text/dns'

ENDPOINTS