---
title: "Convert a raw LaTeX template into a placeholder template"
method: POST
path: "/api/v2/templates/{id}/promote"
tags: ["templates"]
---

# Convert a raw LaTeX template into a placeholder template

`POST /api/v2/templates/{id}/promote`

## Request

- Base URL: `https://api.pressa.dev`
- URL: `https://api.pressa.dev/api/v2/templates/{id}/promote`
- Auth: none declared

Keeps the id, name, instructions and creation date. Without `latex_with_placeholders` the saved source is promoted as it is. The source must pass the template security policy and parse as Liquid.

## Path parameters

- `id` string, required

## Request body

- object
  - `latex_with_placeholders` string: LaTeX with Liquid placeholders. Defaults to the saved source.

## Response `200`

Template converted. Includes the derived `schema` and `sample_data`, and `promoted: true`.

## Other responses

- `401`: Missing or invalid API key.
- `404`: No such template for this account.
- `422`: `already_v2`, `liquid_syntax_error` or `template_security_violation`. The template is left unchanged.

---

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