> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# 恢复 snapshot

> 基于某个 snapshot 恢复数据库。

<Warning>此路由的速率限制为每 60 秒 1 次请求。</Warning>

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  你账户的 API 密钥。你可以在[账户设置](https://squarecloud.app/zh/account/security)中找到它。
</ParamField>

### 参数

<ParamField path="database_id" type="string" placeholder="Database ID" required>
  数据库的 ID。
</ParamField>

<ParamField body="snapshotId" type="string" placeholder="Snapshot ID" required>
  要为该数据库（database\_id）恢复的 snapshot 的 ID。
</ParamField>

<ParamField body="versionId" type="string" placeholder="Snapshot Version Key" required>
  snapshot 的版本密钥。
</ParamField>

### 响应

<ResponseField name="status" type="string">
  指示调用是否成功。成功时为 `success`，否则为 `error`。
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "status":"success"
  }
  ```
</ResponseExample>
