POST /dashboard/service/{id}/dedicated/reinstall

Reinstall server

Reinstalls the operating system on the dedicated server with the specified configuration.

Parameters

NameTypeInDescription
id*
integerpathThe service ID of the dedicated server

Request Body

osstringRequired

Operating system to install

os_versionstringRequired

Operating system version

passwordstringRequired

Root/administrator password for the new installation

ssh_keysarray

Array of SSH key IDs to install on the server

Response

200
400
403
404
successboolean

Request

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 '{}'

Response

{
  "success": true
}