---
title: "Add a whole subject set to a report (legacy PUT /reports/reallocation/set)"
method: PUT
path: "/reports/reallocation/set"
tags: ["Reports"]
---

# Add a whole subject set to a report (legacy PUT /reports/reallocation/set)

`PUT /reports/reallocation/set`

**Requires permission:** *ReportAdmins*

Inserts one entry per pupil in the set (resolved via the canonical Class/ClassStudents bridge) attributed to the chosen teacher, optionally seeding each entry's mark-grades from the step's grade fields. Port of the legacy RPT_RA_MarkGradesForReport + RPT_InsertEntry/RPT_InsertMarkGrade chain.

## Request body

- AddNewSetToReportRequest
  - `reportId` integer
  - `year` integer
  - `stepId` integer
  - `setDetails` ReportSetReallocationDetails
    - `id` integer
    - `setCode` string, nullable
    - `code` string, nullable
    - `subject` string, nullable
  - `teacher` ReportReallocationTeacher
    - `staffId` integer
    - `nameId` integer
    - `email` string, nullable
  - `useGrades` boolean

## Response `204`

Success - Added

## Other responses

- `400` — An Error Occurred - Could not add the set
- `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)
