Update the hostname for a specific virtual server (VM) or an associated domain. A service restart may be required for changes to take full effect. Returns a unique ID to track the operation in subsequent calls.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example hostname string required success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string error string message string retryAfter string requestId string https://cloud.hostup.se/api/vm/{vmid}/hostname curl -X POST "https://cloud.hostup.se/api/vm/17705/hostname" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hostname": "string"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"message": "string",
"hostname": "string",
"normalized": true,
"hostbillSynced": true,
"rdnsProtection": {
"monitoredIps": 0,
"changesDetected": 0,
"restoredIps": [
"string"
],
"failedIps": [
"string"
],
"changedRecords": [
"string"
]
}
}
} {
"hostname": "string"
}