> ## 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.

# 恢复快照

> 基于应用程序的某个快照恢复该应用程序。

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

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

### 参数

<ParamField path="app_id" type="string" placeholder="Application ID" required>
  应用程序的 ID。你可以在应用程序控制台的 URL 中找到它。
</ParamField>

<ParamField body="snapshotId" type="string" placeholder="Snapshot ID" required>
  要为此应用程序（app\_id）恢复的快照的 ID。
</ParamField>

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

### 响应

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

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