---
title: "Restore a template version"
method: POST
path: "/templates/{template_id}/restore_version"
tags: ["Templates"]
---

# Restore a template version

`POST /templates/{template_id}/restore_version`

Restores your template to a previously published version, copying that version's content
and configuration to the current draft. Use this to revert changes or recover from
an unwanted modification.

## Path parameters

- `template_id` string, required

## Request body

- object
  - `version` string, required

## Response `200`

version restored successfully

- SuccessErrorResponse
  - `status` 'success' | 'error', required
  - `error` string

## Other responses

- `401` — authentication failed
- `404` — template version not found
- `422` — draft version not allowed

---

[API](https://skmtc.net/docspring/apis/docspring-api.md) · [All operations](https://skmtc.net/docspring/apis/docspring-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docspring/docspring-api/versions/88e2ef4f5847/schema)
