Upsert Game
Changed onUpsert a game record.
Inserts a new game or updates an existing one based on video_id. If game_id is not provided, a UUID will be auto-generated.
Request
- Base URLhttps://developer.preciser.io
- URLhttps://developer.preciser.io/api/v1/games
- Authnone declared. Required headers: x-api-key, League
Headers
Required API key issued by Preciser.
Required tenant/database selector, for example pitchbio-master.
Request body
Example request
{
"away_team_id": "7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d",
"competition_id": "VIC",
"game_id": "550e8400-e29b-41d4-a716-446655440000",
"game_status": "scheduled",
"home_team_id": "60959335-3173-45b4-b656-276a05b22011",
"scheduled_date_time": "2026-02-01T19:00:00+11:00",
"season": "2026",
"season_type": "regular season",
"venue": "Arena Center"
}Response
Successful Response
Changes
- breaking
the
headerrequest parameterLeaguebecame required - breaking
the
headerrequest parameterx-api-keybecame required - breaking
headerrequest parameterLeaguelist-of-types was narrowed by removing typesnull - breaking
headerrequest parameterx-api-keylist-of-types was narrowed by removing typesnull - info
for the
headerrequest parameterLeague, the type was generalized from no type tostring - info
for the
headerrequest parameterx-api-key, the type was generalized from no type tostring
- breaking
- info
added the optional property
to the response with the status
- info