---
title: "POST /sites/{site_id}/database/snapshot/{snapshot_id}/restore"
method: POST
path: "/sites/{site_id}/database/snapshot/{snapshot_id}/restore"
tags: ["database"]
---

# POST /sites/{site_id}/database/snapshot/{snapshot_id}/restore

`POST /sites/{site_id}/database/snapshot/{snapshot_id}/restore`

Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.

## Request body

- RestoreDatabaseSnapshotRequest — Request body for restoring a database snapshot
  - `branch_id` string — The ID of the branch to restore the snapshot to. Defaults to "production" if not specified.

## Response `200`

OK

## Other responses

- `default` — error

---

[API](https://skmtc.net/netlify/apis/netlify-s-api-documentation.md) · [All operations](https://skmtc.net/netlify/apis/netlify-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netlify/netlify-s-api-documentation/versions/71540d1b5d9d/schema)
