---
title: "Restore snapshot"
method: POST
path: "/disks/{diskId}/snapshots/restore"
tags: ["Disks"]
---

# Restore snapshot

`POST /disks/{diskId}/snapshots/restore`

Restore a persistent disk to an available snapshot.

**This operation is irreversible.** It will overwrite the current disk data. It might also trigger a service deploy.

Snapshot keys returned from the [List snapshots](https://api-docs.render.com/reference/list-snapshots) endpoint expire after 24 hours. If a snapshot key has expired, query the endpoint again for a new key.

## Request body

- SnapshotRestorePOST
  - `snapshotKey` string, required
  - `instanceId` string — When a service with a disk is scaled, the instanceId is used to identify the instance that the disk is attached to. Each instance's disks get their own snapshots, and can be restored separately.

## Response `200`

Restored

- Disk — unresolved $ref

## Other responses

- `400` — The request could not be understood by the server.
- `401` — Authorization information is missing or invalid.
- `403` — You do not have permissions for the requested resource.
- `404` — Unable to find the requested resource.
- `406` — Unable to generate preferred media types as specified by Accept request header.
- `410` — The requested resource is no longer available.
- `429` — Rate limit has been surpassed.
- `500` — An unexpected server error has occurred.
- `503` — Server currently unavailable.

---

[API](https://skmtc.dev/render/apis/render-public-api.md) · [All operations](https://skmtc.dev/render/apis/render-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/render/render-public-api/revisions/80e0ff74d033/schema)
