---
title: "Update properties attendance"
method: PUT
path: "/api/attendance/{propertyId}"
tags: ["Attendance"]
---

# Update properties attendance

`PUT /api/attendance/{propertyId}`

## 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/attendance/{propertyId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/attendance/:propertyId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `propertyId` integer, required

## Request body

- AttendanceUpdateRequest: Request for updating attendance data
  - `property_attendances` object[]: Array of property attendances for update
    - `id` integer: Unique identifier of the attendance entry
    - `property_id` integer: The ID of the property
    - `season_id` integer: The ID of the season
    - `attendance_average` integer: The average attendance (optional)
    - `attendance_total` integer: The total attendance (optional)

## Response `200`

Successful response

- AttendanceResource[]
  - `id` integer
  - `property_id` integer
  - `season_id` integer
  - `season` string
  - `league_name` string
  - `attendance_average` integer
  - `attendance_total` integer
  - `is_added_by_api` boolean
  - `stats_mapping_id` integer, nullable
  - `stats_sport` string, nullable
  - `stats_sport_id` integer, nullable
  - `stats_league_id` integer, nullable
  - `stats_league_abbreviation` string, nullable
  - `stats_league_name` string, nullable
  - `stats_team_id` integer, nullable
  - `stats_team_name` string, nullable
  - `stats_api` string, nullable

---

[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)
