Create a snapshot of your virtual server.

Use this endpoint to take a snapshot of your virtual server. This is useful before making major changes or updates, allowing you to easily restore the server to a previous state if something goes wrong. The snapshot creation process is queued and handled in the background.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
name string required
description string required

Responses

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