DeluxHostAPI Reference
Storage files

Restore a file from a snapshot

POST
/v1/services/{orderId}/storage/files/restore

Requires confirm: true. Inspect the resource before retrying an uncertain outcome.

Authorization

apiToken storage:files:write
headerAuthorizationBearer <token>

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

Scope: storage:files:write

Path Parameters

orderId*number

Request Body

application/json
  1. body
snapshot*string
path*string
overwrite?boolean
confirm*boolean

Response Body

Operation completed or accepted; asynchronous actions may still be running.

application/json
  1. response
restoredBytes*number
entries*number
curl -X POST 'https://api.deluxhost.net/v1/services/0/storage/files/restore' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Content-Type: application/json' \  -d '{  "snapshot": "string",  "path": "string",  "confirm": true}'
Example Response
{  "restoredBytes": 0,  "entries": 0}