---
search:
  tags:
    - projects
    - POST
seo:
  description: >-
    Restores the project configuration to the state of… Reference for the POST
    /projects/{id}/versions/{versionId}/restore endpoint in the Leadtime Public
    API API.
sidebar:
  badge: POST
  label: Restore project to a previous version
title: Restore project to a previous version
type: openapi-operation
---
Restores the project configuration to the state of a previously saved version. This is a destructive operation that replaces the current project state.

**What happens:**
- The current project configuration is replaced with the selected version
- All current components, products, and manual positions are removed
- The project state is restored to exactly match the saved version
- The restored version becomes the current active version

**Warning:**
This operation cannot be undone. All unsaved changes will be lost. Make sure to create a new version of the current state before restoring if you want to preserve it.

**Use cases:**
- Rollback to a previous version after unwanted changes
- Restore a project variant for comparison
- Revert to a stable configuration

**Required permissions:** Projects.manageSnapshots permission is required to restore versions.

<Operation source="api-reference" id="projectversionscontroller-restoreversion" />
