POST /api/v1/domains
Create a new domain
Examples
POST /api/v1/domains/ auth_token=XPpLxAyCMSwEuwqnZ2Db&domain[name]=my-new-domain.com&domain[ip]=3.4.5.6 201 { "id": 3, "name": "my-new-domain.com", "last_check": null }
POST /api/v1/domains/ auth_token=NMp81oz3xzKSfDeZnaSg&domain[name]=my_new_domain.com&domain[ip]=3.4.5.6 422 { "errors": { "name": [ "is invalid" ] } }
Supported Formats
jsonErrors
302 Unauthorized, redirected401 Unauthorized
422 Bad parameter
404 Not found
500 Server crashed for some reason
Params
Param name | Description |
---|---|
auth_token required |
API authentication key Value: Must be String |
domain required |
Value: Must be a Hash |
domain[name] required |
domain name to be registered in the dns Value: Must be String |
domain[ip] required |
domain's main IP address Value: Must be String |