Skip to main content
POST
Restore Snapshot
This route has a rate limit of 1 request every 60 seconds.
Authorization
string
required
The API key for your account. You can find this in your account settings.
Restores a database in-place from a previously taken snapshot, identified by the snapshotId and versionId returned from Create Snapshot or List Snapshots. The snapshot’s engine must match the target database’s type, you cannot restore a Redis snapshot onto a MongoDB database, for example. This overwrites the database’s current data with the snapshot’s contents; there is no undo beyond taking another snapshot first. While the restore is running, Start, Stop and Delete Database are rejected for that database. Rate limited to 1 restore per 60 seconds per user, and 1 restore per 120 seconds per database.

Parameters

database_id
string
required
The ID of the database.
snapshotId
string
required
The ID of the snapshot to restore for this database (database_id).
versionId
string
required
The version key of the snapshot.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.

Common errors