---
title: "Restore snapshot"
method: POST
path: "/api/v1/snapshots/{id}/restore"
tags: ["Snapshots"]
---

# Restore snapshot

`POST /api/v1/snapshots/{id}/restore`

Revert the source VM (or volume) to the state captured in this snapshot.

For VM snapshots, the VM must be in `passive` state (powered off) before calling this endpoint.

After a successful restore, this snapshot's `status` flips to `active` and the previously-active snapshot (if any) is cleared. An `active` snapshot cannot be deleted — restore the source to a different snapshot first, or take a fresh one.

## Path parameters

- `id` integer, required

## Headers

- `X-Project-ID` string, uuid, required

## Response `200`

Snapshot restore initiated

- SuccessResponse
  - `success` boolean
  - `message` string

## Other responses

- `400` — Invalid request parameters
- `404` — Resource not found

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
