---
title: "Restore from snapshot"
method: POST
path: "/api/fleet/snapshots/{id}/restore"
tags: ["Fleet"]
---

# Restore from snapshot

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

Restores a specific stack on a specific node from the snapshot. Optionally redeploys after restore. Requires admin role.

## Path parameters

- `id` integer, required

## Request body

- object
  - `nodeId` integer, required — Target node ID to restore to.
  - `stackName` string, required — Stack to restore.
  - `redeploy` boolean — Whether to redeploy the stack after restoring files.

## Response `200`

Stack restored.

- SuccessMessage
  - `message` string, required

## Other responses

- `400` — Missing required fields.
- `403` — Insufficient permissions or license tier.
- `404` — Resource not found.
- `409` — One or more snapshot files for the stack could not be decrypted.
- `500` — Internal server error.

## Changes

- **2026-07-20** `51d0702ed0d1` — 1 info
  - added the non-success response with the status `409`
- **2026-06-04** `d58cf9d6195b` — 4 info
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `400`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `403`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `404`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `500`
- **2026-04-05** `7464894ea582` — 4 warning, 4 info
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `400`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `403`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `404`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `500`
  - …4 more
- **2026-04-05** `a202861afa64` — 1 info
  - endpoint added
- **2026-04-03** `82927cbcc9f7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/studio-saelix/apis/sencho-api/changes/api/fleet/snapshots/:id/restore/post.md)

---

[API](https://skmtc.dev/studio-saelix/apis/sencho-api.md) · [All operations](https://skmtc.dev/studio-saelix/apis/sencho-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/studio-saelix/sencho-api/revisions/82aac94c016e/schema)
