---
title: "Create a report draft"
method: POST
path: "/reports/setup"
tags: ["Reports"]
---

# Create a report draft

`POST /reports/setup`

**Requires permission:** *ReportAdmins*

Persists a report detail row (created in draft from the setup screen). Port of the legacy v2 PostCreateReportDetails (Update upsert on ReportDetail).

## Request body

- CreateReportDetailsRequest
  - `name` string, required
  - `academicYear` integer
  - `yearGroup` string, required
  - `publishToParents` string, date-time, required
  - `publishToStudents` string, date-time, required
  - `sportAllocation` boolean
  - `draft` boolean
  - `hidden` boolean
  - `total` integer
  - `complete` integer

## Response `200`

Success - Report created as draft (returns the new report id)

## Other responses

- `400` — An Error Occurred - Could not create report
- `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/28344aa564b4/schema)
