---
title: "Restore Version"
method: POST
path: "/api/projects/{project_id}/versions/restore"
tags: ["projects"]
---

# Restore Version

`POST /api/projects/{project_id}/versions/restore`

## Request

- Base URL: `https://api.pcbgenerator.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pcbgenerator.com/api/projects/{project_id}/versions/restore`
- Auth: HTTP bearer

Restore a previous version (creates a new version and updates project).

## Path parameters

- `project_id` string, required

## Request body

- VersionRestore: Request model for restoring a previous version.
  - `version_id` string, required: UUID of the version to restore

## Response `200`

Successful Response

- VersionResponse: Response model for version metadata (excludes snapshot for list views).
  - `id` string, required
  - `project_id` string, required
  - `version_number` integer, required
  - `parent_version_id` string, nullable
  - `note` string, nullable
  - `trigger` string, required
  - `tags` string[]
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api.md) · [All operations](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/revisions/b6084b3ace32?raw)
