---
title: "Create or update sport report allocations (legacy POST /reports/Sport)"
method: POST
path: "/reports/Sport"
tags: ["Reports"]
---

# Create or update sport report allocations (legacy POST /reports/Sport)

`POST /reports/Sport`

**Requires permission:** *StaffMember*

For the report's first step, upserts one entry per (staff, pupil) pair in the supplied rows for the given sport entry name. Port of the legacy v2 PostCreateSportReports endpoint.

## Request body

- CreateSportReportsRequest
  - `rows` SportReportAllocationRow[], nullable
    - `staff` SportStaffDto
      - `staffId` integer
      - `nameId` integer
      - `preferredName` string, nullable
      - `surname` string, nullable
      - `email` string, nullable
      - `staffUpi` string, guid, nullable
    - `pupils` SportPupilDto[]
      - `pupilId` integer
      - `nameId` integer
      - `preferredName` string, nullable
      - `surname` string, nullable
  - `reportId` integer
  - `entryName` string, nullable

## Response `204`

Success - Entries created

## Other responses

- `400` — An Error Occurred - Could not create entries
- `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)
