Configure scheduled snapshots for your VPS

Set up or modify how often your virtual server (VPS) takes automatic snapshots. You can enable or disable the schedule and determine the interval between snapshots.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
enabled boolean required
interval_hours integer required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/vm/{vmid}/snapshot-schedules
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/vm/14195/snapshot-schedules" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "interval_hours": 0
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "schedule": {
      "id": "string",
      "client_id": "string",
      "account_id": "string",
      "vm_id": "string",
      "enabled": true,
      "interval_hours": 0,
      "retention_days": 0,
      "last_run": "string",
      "next_run": "string",
      "created_at": "string",
      "updated_at": "string"
    },
    "message": "string"
  }
}
Request Body
{
  "enabled": true,
  "interval_hours": 0
}