---
title: "Create a VM snapshot"
method: POST
path: "/vm/{rid}/snapshots"
tags: ["VM"]
---

# Create a VM snapshot

`POST /vm/{rid}/snapshots`

Create crash-consistent recursive ZFS snapshots for a virtual machine; roots on different pools are captured sequentially and the guest is not quiesced

## Path parameters

- `rid` integer, required

## Request body

- InternalHandlersVmCreateVMSnapshotRequest
  - `description` string
  - `name` string, required

## Response `201`

Created

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalDbModelsVmVMSnapshot
  - `data` GithubComAlchemillahqSylveInternalDbModelsVmVMSnapshot
    - `createdAt` string
    - `description` string
    - `id` integer
    - `name` string
    - `parentSnapshotId` integer
    - `rid` integer
    - `rootDatasets` string[]
    - `snapshotName` string
    - `updatedAt` string
    - `vmId` integer
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
