Reset a virtual server to a selected template state

Reset a virtual server (VM) to a specific template state. This is useful for a clean installation or reverting to a previous configuration. The endpoint returns a requestId to track the reset status.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
templateId string required

Responses

200
success boolean
timestamp string
requestId string
data object
500
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/vm/{vmid}/rebuild
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/vm/17830/rebuild" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "message": "string"
  }
}
Request Body
{
  "templateId": "string"
}