Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You are using the wrong version of the API.

In v1 - domains are called domains

(eg $url:$port/v1/domains )

In v2 they are zones

(eg $url:$port/v2/zones )

also, your post data is wrong, the domain needs the trailing . at the end like

$post='{
    "name": "domain1.com.",
    "ttl": 3600,
    "email": "test@gmail.com"
}';