Skip to main content
PUT
Update Game
The Game Data API is in preview. Endpoints, fields and limits may change before release, and it is not yet available to call.
Send only the fields to change: the game’s name, activity and pitch, its game_date, timezone and kickoff, its periods, or its teams (roster, or home_team and away_team). Any other field returns 400. The response returns the game’s details as they are after the change.

Date, kickoff and time zone

These follow the same rules as on Create Game, checked against the values in the same request or, where it doesn’t send them, the game’s own. "kickoff_at": null clears the kickoff. A kickoff_at without a game_date moves the game’s date to its own. A change that leaves the kickoff disagreeing with the date or time zone returns 400.

Activity and pitch

A new activity without a pitch takes that activity’s default pitch. Neither can change once the game has videos (409).

Roster and teams

A roster sets or replaces the game’s roster, and its team names and kit colors become the game’s; "roster": null removes it. A game with a roster takes its teams from it alone: sending home_team or away_team for it returns 409, so replace or remove the roster instead. The roster and teams follow the same rules as on Create Game.

Periods

periods replaces the game’s whole list; [] clears it.

When a game can’t be changed

Nothing about a game can change while one of its videos is reserved, uploading or being processed: those requests return 409 until every video’s status is completed or error, or, for a video that is never uploaded, until 1 hour after it was reserved (While videos are uploading or processing). Runs that have already started keep the roster, kit colors and periods they started with.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

game_id
string<uuid>
required

Game identifier. The game must belong to your organization.

Body

application/json

At least one field.

name
string
Required string length: 1 - 200
activity
enum<string>

Can't change once the game has videos. A new activity without a pitch takes its default pitch.

Available options:
soccer
pitch
object

Length 90–120 m, width 45–90 m. Can't change once the game has videos.

game_date
string<date>
timezone
string

IANA time zone, e.g., America/Chicago.

kickoff_at
string<date-time> | null

When the game started, ISO 8601 with its UTC offset; null clears the kickoff. Without a game_date, it moves the game's date to its own.

roster
object[] | null

Sets or replaces the game's roster; null removes it. Its team names and kit colors become the game's. Not with home_team or away_team.

Required array length: 1 - 200 elements
home_team
object

A team, for a game without a roster.

away_team
object

A team, for a game without a roster.

periods
object[]

Replaces the game's periods; [] clears them.

Maximum array length: 30

Response

The game's details, teams, periods and, when one was sent, its roster.

game_id
string<uuid>
name
string
activity
string
updated_at
string<date-time>
roster_updated_at
string<date-time> | null
game_date
string<date> | null
timezone
string | null
kickoff_at
string<date-time> | null
pitch
object
home_team
object

A team, known by its side.

away_team
object

A team, known by its side.

periods
object[]
roster
object[] | null

The roster sent, as Get Game returns it; null when none was sent.