---
title: "Put a version back live"
method: POST
path: "/api/templates/{id}/versions"
tags: ["Templates"]
---

# Put a version back live

`POST /api/templates/{id}/versions`

## Request

- Base URL: `https://morfee.furo.solutions`
- URL: `https://morfee.furo.solutions/api/templates/{id}/versions`
- Auth: one of:
  - API key in header `X-Api-Key`
  - HTTP bearer

Restoring is itself a save, so the version you are replacing is kept as well.

Needs a key scoped `write` or `full`.

## Path parameters

- `id` string, required

## Request body

- object
  - `version` integer, required: The `id` of the version.

## Response `200`

That version is live again.

- object
  - `ok` boolean
  - `template` TemplateMeta: A template as the list hands it over: everything except the template body itself.
    - `id` string, required: The id to render with. Lower case, digits and dashes.
    - `name` string, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `createdBy` string, nullable: The email address that saved it first.
    - `folderId` string, nullable: null means it is in no folder.
    - `bindingCount` integer: How many fields are pointed at.
    - `listCount` integer: How many of those are lists.
    - `byHand` boolean: True when the template has logic in it but no bindings: written directly rather than built by pointing at a design. The builder cannot rebuild such a template and opens it read only.
    - `sizeKb` integer

## Other responses

- `400`: Something in the request is wrong, and the message says what.
- `401`: No key, an unknown key or a revoked one.
- `403`: The key is real and the organization is right, but the scope on it does not cover this. The message names the scope the key has, what that scope may do, and how to get a wider one, because the thing reading it is usually the thing that has to act on it.
- `404`: Not there, or not yours. Both give the same answer on purpose: a different one would let a caller find out which ids exist in another organization.

---

[API](https://skmtc.dev/furo/apis/morfee.md) · [All operations](https://skmtc.dev/furo/apis/morfee/llms.txt) · [OpenAPI document](https://skmtc.dev/furo/apis/morfee/revisions/83f95f89653f?raw)
