Create a new URL redirect (301 permanent or 302 temporary). Can be configured for a specific path or wildcard for all sub-pages.
accountId integer · min: 1 required Example Unique account identifier
Accept Example Content-Type Example domain string required directory string required redirectUrl string required type string wildcard boolean success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string details array https://cloud.hostup.se/api/hosting/{accountId}/redirects curl -X POST "https://cloud.hostup.se/api/hosting/17374/redirects" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "string",
"directory": "string",
"redirectUrl": "string",
"type": "string",
"wildcard": true
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"accountId": "string",
"cpanelUsername": "string",
"domain": "string",
"directory": "string",
"redirectUrl": "string",
"type": "string",
"wildcard": true,
"created": true
}
} {
"domain": "string",
"directory": "string",
"redirectUrl": "string",
"type": "string",
"wildcard": true
}