---
title: "Create a report template"
method: POST
path: "/reports/templates"
tags: ["reports"]
---

# Create a report template

`POST /reports/templates`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/reports/templates`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Request body

- object
  - `name` string, required
  - `description` string
  - `sections` object[], required
  - `domain` string

## Response `201`

Template created

- ReportTemplate
  - `id` integer, required
  - `key` string, nullable: Non-null for built-in templates
  - `name` string, required
  - `description` string, nullable
  - `domain` string, nullable
  - `sections` object[], required
  - `isBuiltIn` boolean, required
  - `createdAt` string, date-time

## Other responses

- `403`: Forbidden

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/reports/templates/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
