---
title: "Restore older version as new version"
method: POST
path: "/documents/document-version-restore"
tags: ["Document AI — DMS"]
---

# Restore older version as new version

`POST /documents/document-version-restore`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/documents/document-version-restore`
- Auth: HTTP bearer

Rollback without rewriting history: creates a NEW latest version (n+1, own pofid) with the content of an OLDER version (pofid). OCR text and metadata of that older version are copied; no IDP re-run. Fails if the selected version...

## Response `200`

Success

- SuccessEnvelope: Success envelope. Payload fields are endpoint-specific (top-level fields, `result`/`job_result` for jobs, `data` on some account endpoints).
  - `status` 'success', required
  - `processing_time` union
    - string
    - number
  - `_billing` object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
