DeluxHostAPI Reference
Storage Boxes

Restore a storage snapshot

POST
/v1/services/{id}/storage/snapshots/{name}/rollback

Destructive. Every change made after the snapshot is lost, and every snapshot taken\nafter it is destroyed (destroyed lists them). The body must carry confirm: true;\nwithout it the answer is 400 with details.code: confirmation_required and nothing\nhappens. Five per 15 minutes per account, shared with the dashboard.

Authorization

apiToken storage:write
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: storage:write

Path Parameters

id*integer

The service id, as returned by GET /v1/services.

name*string

name from GET …/storage/snapshots.

Request Body

application/json
  1. body
confirm*boolean

Response Body

Rolled back.

application/json
  1. response
destroyed*array<string>
curl -X POST 'https://api.deluxhost.net/v1/services/0/storage/snapshots/string/rollback' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Content-Type: application/json' \  -d '{  "confirm": true}'
Example Response
{  "destroyed": [    "string"  ]}