---
title: "Preview template content without saving it"
method: POST
path: "/v1/org/{orgId}/template/{templateId}/preview"
tags: ["template"]
---

# Preview template content without saving it

`POST /v1/org/{orgId}/template/{templateId}/preview`

## Path parameters

- `orgId` string, required

## Query parameters

- `jobId` string
- `scenarioId` string
- `date` string, date
- `format` 'TEXT' | 'HTML' | 'PDF', required
- `changeGroupingType` 'PRIMARY' | 'SCENARIO' | 'COMP_REVIEW'
- `changeGroupingId` string
- `useScenarioChanges` boolean

## Request body

- TemplatePreviewRequest
  - `content` string, required
  - `stylesheet` string

## Response `204`

template previewed

- TemplateRenderResponse
  - `content` string, required

## Other responses

- `400` — invalid data
- `401` — not authorized
- `403` — permission denied
- `404` — not found

---

[API](https://skmtc.dev/charthop/apis/charthop-api.md) · [All operations](https://skmtc.dev/charthop/apis/charthop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/charthop/charthop-api/revisions/0521a07431d4/schema)
