Sign up

Backups on or off

POST/api/v1/vps/{vps_uuid}/backups

On, a backup is taken every night at a time of the server's own and the last 5 are kept; the plan price grows by its backup share. Off deletes every backup of the server.

Parameters

NameInDescription
vps_uuidpath, stringrequiredVPS id, from Create a VPS or List VPS

Request body

FieldTypeDescription
enabledbooleanrequiredDaily backups on or off (adds the plan's backup share to the price)

Example request

curl -X POST "https://platform.serverscamp.com/api/v1/vps/$VPS_UUID/backups" \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true
  }'

Answer

Status 200 with this body.

FieldTypeDescription
vps_uuidstringrequired
enabledbooleanrequiredDaily backups on
{
  "vps_uuid": "12d46f8c-d66e-4163-99aa-1245d5b06e5b",
  "enabled": true
}

Errors

StatusWhen
401No token, or a token that is not valid
409A backup is running; turn backups off when it is done
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors