Skip to main content
POST
/
io.pocketenv.sandbox.createBackup
Create a backup of a sandbox by id
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.createBackup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "directory": "<string>",
  "description": "<string>",
  "ttl": 123
}
'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
directory
string
required

The directory to backup.

description
string

An optional description for the backup.

ttl
integer

Response

OK