POST /dns_zone 

Create a new DNS zone

Sections:

Request Parameters

name* – name of a DNS zone you create

auto_populate – autopopulate option lets you automatically import your existing DNS settings. To autopopulate your DNS settings, set the autopopulate value 1, otherwise set 0.

Response Parameters

On success echos the created dns

JSON Request example

 curl -i -X POST <api_url>/dns_zones.json -d '{"dns_zone":{"name":"domain.com", "auto_populate":"1"}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

JSON Response

{
    "dns_zone": {
        "created_at": "2015-08-21T00:40:39+00:00",
        "id": 29,
        "name": "domain.com",
        "updated_at": "2015-08-21T00:40:39+00:00",
        "user_id": 321,
        "cdn_reference": 334088150
    }
}

XML Request example

 curl -i -X POST <api_url>/dns_zones.xml -d '<dns_zone><name>domain.com</name><auto_populate>1</auto_populate></dns_zone>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'