Create a zone
POST https://{{host}}/config-dns/v2/zones?contractId={{contractId}}&gid={{gid}}
Creates a new zone. Carefully review the documentation for which fields are relevant to the type of zone you're creating.
Body
PARAM
Key | Datatype | Required | Description |
contractId
|
string | (Required) The contract to use for the new zone. | |
gid
|
string | (Required) The currently selected group ID to manage. | |
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 | ||
Accept
|
string |
RESPONSES
status Created
{
"activationState": "ERROR",
"aliasCount": 1,
"comment": "Initial add",
"contractId&qu Curl curl -X POST 'https://host/config-dns/v2/zones?contractId=&gid=?contractId=&gid=&accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"comment":"Adding bodies of water","masters":["192.0.2.183","192.0.2.113"],"type":"SECONDARY","zone":"river.com"}' ENDPOINTS |