snapshotId (the database ID that the snapshot belongs to) and the versionId (the specific version of the snapshot to restore). Retrieve both values from the List Snapshots endpoint.
Request
POST https://api.virtuscloud.app/v2/databases/{databaseId}/snapshots/restore
Headers
Your Virtus Cloud API key. Pass it directly as the header value — no prefix required.Example:
Authorization: vc_live_xxxxxxxxxxxxPath Parameters
The unique identifier of the database you want to restore into. This is typically the same database that the snapshot belongs to.
Body
The database ID that owns the snapshot you want to restore. Found in the
name field of the List Snapshots response.The specific snapshot version to restore. Extract this value from the
versionId parameter within the key field returned by the List Snapshots endpoint (e.g., 45ec0b49-9af6-445e-a55c-abd7ec5278b2).Response
Returns
"success" when the restore operation is initiated successfully.