POST
/
v2
/
databases
/
{databaseId}
/
snapshots
/
restore
Restore Snapshot
curl --request POST \
  --url https://api.squarecloud.app/v2/databases/{databaseId}/snapshots/restore \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "snapshotId": "<string>",
  "versionId": "<string>"
}'
{
  "status":"success"
}

Request

Headers

Authorization
string
required
The API key for your account. You can find this in your account settings.

Path

databaseId
string
required
The ID of the database.

Body

snapshotId
string
required
The database id you wanna restore.
versionId
string
required
The snapshot of the database you wanna restore.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
{
  "status":"success"
}