Add a new domain to your web hosting account. Automatically creates a subdomain and directory.
accountId integer · min: 1 required Example Unique account identifier
Accept Example Content-Type Example domain string required subdomain string required dir string success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string details array error string message string code string timestamp string requestId string https://cloud.hostup.se/api/hosting/{accountId}/addon-domains curl -X POST "https://cloud.hostup.se/api/hosting/18154/addon-domains" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"subdomain": "string",
"dir": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"accountId": "string",
"cpanelUsername": "string",
"domain": "string",
"subdomain": "string",
"dir": "string",
"added": true
}
} {
"domain": "string",
"subdomain": "string",
"dir": "string"
}