---
title: "Update a stats perform mapping"
method: PUT
path: "/api/stats/mappings/{id}"
tags: ["Stats"]
---

# Update a stats perform mapping

`PUT /api/stats/mappings/{id}`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/stats/mappings/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/stats/mappings/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a stats perform mapping by associating it with a SponsorUnited team/property

## Path parameters

- `id` integer, required

## Request body

- StatsMappingUpdateRequest: Request schema for updating a stats perform mapping
  - `su_team_id` integer, required: SponsorUnited team/property ID to map to

## Response `200`

Updated stats perform mapping

- StatsMappingDto: Data Transfer Object representing a stats perform mapping entry
  - `id` integer: Unique identifier for the mapping
  - `statsSport` string: Name of the sport in Stats Perform system
  - `statsSportId` integer: Numeric ID of the sport in Stats Perform system
  - `statsLeagueAbbreviation` string, nullable: League abbreviation in Stats Perform system
  - `statsLeagueName` string, nullable: League name in Stats Perform system
  - `statsTeamId` string, nullable: Team identifier in Stats Perform system
  - `statsTeamName` string, nullable: Team name in Stats Perform system
  - `suTeamId` integer, nullable: SponsorUnited team/property ID
  - `suTeamName` string, nullable: SponsorUnited team/property name
  - `statsApi` string: Stats Perform API source identifier

## Other responses

- `401`: Unauthorized
- `404`: Mapping not found
- `422`: Validation Error

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
