templates

Convert a raw LaTeX template into a placeholder template

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.

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

Path parameters

idstring required

Numeric template id or template name.

Request body

latex_with_placeholdersstring

LaTeX with Liquid placeholders. Defaults to the saved source.

Response

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

Changes

No recorded changes to this operation across all 1 revision of this API.