Skip to content

Delete the snapshot schedule of a VPS

DELETE /api/v2/vps/{id}/snapshot-schedules

Deletes the automatic snapshot schedule of a VPS. No more scheduled snapshots are taken. Snapshots already taken stay until they expire or you delete them with DELETE /api/v2/vps/{id}/snapshots/{snapshotId}. To pause the schedule and keep its settings, send enabled: false to POST /api/v2/vps/{id}/snapshot-schedules instead. A VPS without a schedule returns 404 snapshot_schedule_not_found.

Authentication: An API key with the scopes write:vm and vm:write. About keys and scopes

Request

Path parameters

idstringrequired
The VPS ID (vps_…).

Example

DELETE /api/v2/vps/{id}/snapshot-schedules
curl -X DELETE "https://cloud.hostup.se/api/v2/vps/vps_01hxa3b4c5d6e7f8g9h0j1k2m3/snapshot-schedules" \
-H "Authorization: Bearer $HOSTUP_API_KEY"

Responses

204 The schedule is deleted.

Errors

Errors are Problem Details with a stable code. Branch on the code, not on the text.

400Invalid request. The response body is an RFC 7807 Problem Details document.
401Unauthorized. Authentication is required.
403Forbidden. The caller lacks a required scope or does not own the resource.
404Not found. code is vps_not_found (no such VPS on the account) or snapshot_schedule_not_found (the VPS has no schedule).
429Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers.
500Internal error. Retry later or contact support if the issue persists.