---
title: "Create VM restore (flat)"
method: POST
path: "/virtual_machine_restores"
tags: ["Virtual machine restores"]
---

# Create VM restore (flat)

`POST /virtual_machine_restores`

Restores the backup referenced in the body into a new Virtual Machine. Optionally accepts a `name` for the restored VM and a target `site` slug to restore into another region.

## Request body

- VirtualMachineRestorePayload
  - `data` object
    - `type` 'virtual_machine_restores'
    - `attributes` object
      - `backup` string — Source backup id. Required on the flat `POST /virtual_machine_restores`; taken from the path when nested under a backup.
      - `name` string, nullable — Optional name for the restored VM. Auto-generated from the source VM when omitted.
      - `site` string, nullable — Optional target site slug. Restores into that region (migration) instead of the backup's own region. Defaults to the backup's site.

## Response `201`

Created

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict — another operation on this backup is in progress (`BACKUP_LOCKED`)
- `422` — Unprocessable Entity — the source backup is not ready (`SOURCE_BACKUP_NOT_READY`), no cluster in the requested site can host the restore (`NO_ELIGIBLE_CLUSTER`), or the virtual machine's plan requires GPU passthrough and cannot be restored (`GPU_RESTORE_UNSUPPORTED`)

## Changes

> 29 revisions in range; 19 could not be searched.

- **2026-08-05** `ae7dcb22727c` — 1 info
  - added the optional property `data/attributes/team/limits/prefix` to the response with the `201` status
- **2026-07-21** `885dec47dd47` — 3 info
  - added the optional property `data/attributes/project/stats/databases` to the response with the `201` status
  - added the optional property `data/attributes/project/stats/storages` to the response with the `201` status
  - added the optional property `data/attributes/project/stats/virtual_machines` to the response with the `201` status

[Change history](https://skmtc.dev/latitude/apis/latitude-sh-api/changes/virtual_machine_restores/post.md)

---

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