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

# Create a report template from an existing report

`POST /reports/templates/from-report`

**Requires permission:** *ReportAdmins*

Captures the whole structure of an existing report (steps, mark-grade fields/options, step group selections and report info HTML) into a reusable template, minus the per-pupil entries. The template can then pre-fill a brand-new report.

## Query parameters

- `reportId` integer, required
- `name` string, nullable

## Response `200`

Success - Template created

- ReportTemplateSummary
  - `id` integer
  - `name` string, nullable
  - `academicYear` integer, nullable
  - `yearGroup` string, nullable
  - `createdBy` string, nullable
  - `createdDate` string, date-time

## Other responses

- `400` — An Error Occurred - Could not create template
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.net/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/versions/fab57bf5558a/schema)
