POST
/dashboard/service/{id}/dedicated/reinstall Reinstall server
Reinstalls the operating system on the dedicated server with the specified configuration.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The service ID of the dedicated server |
Request Body
osstringRequiredOperating system to install
os_versionstringRequiredOperating system version
passwordstringRequiredRoot/administrator password for the new installation
ssh_keysarrayArray of SSH key IDs to install on the server
Response
200
400
403
404
successbooleanRequest
curl -X POST "https://api.royalehosting.net/dashboard/service/{id}/dedicated/reinstall" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID" \
-H "Content-Type: application/json" \
-d '{}'Request
const response = await fetch("https://api.royalehosting.net/dashboard/service/{id}/dedicated/reinstall", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
"Content-Type": "application/json",
},
body: JSON.stringify({
"os": "ubuntu",
"os_version": "24.04",
"password": "SecurePassword123!",
"ssh_keys": [
1,
2,
3
]
}),
});
const data = await response.json();Request
import requests
response = requests.post(
"https://api.royalehosting.net/dashboard/service/{id}/dedicated/reinstall",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true
}