Skip to main content
POST
Restore a single-login database from its backup
Queues a staged restore from a verified backup of the same database. DBHost validates the backup, creates and verifies a pre-restore backup, restores into an isolated database, then swaps it in. The previous database is kept in isolation for 24 hours so DBHost can roll back if needed. The restored database keeps the connection limit and query timeout profile you had chosen: DBHost copies the database-scoped settings onto the restored database before the swap and rebinds the saved settings to the new physical database when the restore completes.
Send an Idempotency-Key header and reuse it on retries.
This route is for single-login databases. A database with additional roles returns 409 LEGACY_OVERLAY_REQUIRES_V4 and uses the v4 restore; a database with managed SQL roles uses POST /api/v1/databases/{id}/managed-restores. See Restore from a DBHost backup for all paths. The CLI has no restore command.

Path parameters

Example

Response

202 Accepted
Poll GET /api/v1/operations/{id} for validation, staging, swap, health-check, rollback, and completion status.

Errors