Skip to main content
POST
/
servers
/
{server}
/
reinstall
Reinstall a server
curl --request POST \
  --url https://rdp.sh/api/v1/servers/{server}/reinstall \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "distro_id": 123
}
'
{
  "status": true,
  "message": "<string>",
  "server_id": 123,
  "previous_server_id": 123,
  "deployment_id": 123,
  "expiry_date": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.rdp.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

server
string
required

Body

application/json
distro_id
integer
required

ID of the operating system to install. Accepts either a Linux distro ID (for Linux plans) or a Windows iso ID (for Windows plans). Use GET /distros to list available Linux distros.

Response

Reinstallation dispatched successfully.

status
boolean
required
Example:

true

message
string
required
Example:

"Reinstallation has been dispatched"

server_id
integer
required

ID of the new server replacing the previous one.

Example:

124

previous_server_id
integer
required

ID of the server that was deleted.

Example:

123

deployment_id
integer
required
Example:

45

expiry_date
string
required

Expiry date carried over from the previous server.

Example:

"2026-06-04T00:00:00.000000Z"