---
title: "Roll back to a version"
method: POST
path: "/v1/specs/{id}/versions/{n}/rollback"
tags: ["Specs"]
---

# Roll back to a version

`POST /v1/specs/{id}/versions/{n}/rollback`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/specs/{id}/versions/{n}/rollback`
- Auth: HTTP bearer

Makes version `n`'s document the draft and publishes it as a NEW
version, which new runs then use. Earlier versions stay as they were.
A draft saved in between is a 409; issues work as on publish.
Requires `specs:write`.

## Path parameters

- `id` string, uuid, required
- `n` integer, required

## Request body

- SpecPublishRequest
  - `acknowledge_issues` boolean: Proceed over the issues a previous attempt listed.
  - `expected_draft_revision` integer: The draft revision you reviewed; a mismatch is a 409.

## Response `200`

Rolled back.

- intersection
  - [`SpecPublishResult`](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e/schema?at=%2Fcomponents%2Fschemas%2FSpecPublishResult)
  - object
    - `restored_from` integer

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `409`: The request conflicts with the current resource state.
- `422`: Issues to acknowledge.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/specs/:id/versions/:n/rollback/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
