Update Game
curl --request PUT \
--url https://api.uplift.ai/v1/games/{game_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"game_date": "2026-10-25",
"kickoff_at": "2026-10-25T15:00:00-05:00",
"periods": [
{
"period": 1,
"label": "first_half",
"start_time": 4,
"end_time": 2760
},
{
"period": 2,
"label": "second_half",
"start_time": 3660,
"end_time": null
}
]
}
'import requests
url = "https://api.uplift.ai/v1/games/{game_id}"
payload = {
"game_date": "2026-10-25",
"kickoff_at": "2026-10-25T15:00:00-05:00",
"periods": [
{
"period": 1,
"label": "first_half",
"start_time": 4,
"end_time": 2760
},
{
"period": 2,
"label": "second_half",
"start_time": 3660,
"end_time": None
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
game_date: '2026-10-25',
kickoff_at: '2026-10-25T15:00:00-05:00',
periods: [
{period: 1, label: 'first_half', start_time: 4, end_time: 2760},
{period: 2, label: 'second_half', start_time: 3660, end_time: null}
]
})
};
fetch('https://api.uplift.ai/v1/games/{game_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.uplift.ai/v1/games/{game_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'game_date' => '2026-10-25',
'kickoff_at' => '2026-10-25T15:00:00-05:00',
'periods' => [
[
'period' => 1,
'label' => 'first_half',
'start_time' => 4,
'end_time' => 2760
],
[
'period' => 2,
'label' => 'second_half',
'start_time' => 3660,
'end_time' => null
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uplift.ai/v1/games/{game_id}"
payload := strings.NewReader("{\n \"game_date\": \"2026-10-25\",\n \"kickoff_at\": \"2026-10-25T15:00:00-05:00\",\n \"periods\": [\n {\n \"period\": 1,\n \"label\": \"first_half\",\n \"start_time\": 4,\n \"end_time\": 2760\n },\n {\n \"period\": 2,\n \"label\": \"second_half\",\n \"start_time\": 3660,\n \"end_time\": null\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.uplift.ai/v1/games/{game_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"game_date\": \"2026-10-25\",\n \"kickoff_at\": \"2026-10-25T15:00:00-05:00\",\n \"periods\": [\n {\n \"period\": 1,\n \"label\": \"first_half\",\n \"start_time\": 4,\n \"end_time\": 2760\n },\n {\n \"period\": 2,\n \"label\": \"second_half\",\n \"start_time\": 3660,\n \"end_time\": null\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games/{game_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"game_date\": \"2026-10-25\",\n \"kickoff_at\": \"2026-10-25T15:00:00-05:00\",\n \"periods\": [\n {\n \"period\": 1,\n \"label\": \"first_half\",\n \"start_time\": 4,\n \"end_time\": 2760\n },\n {\n \"period\": 2,\n \"label\": \"second_half\",\n \"start_time\": 3660,\n \"end_time\": null\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"game_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"name": "Uplift Home v Uplift Away",
"activity": "soccer",
"updated_at": "2026-10-19T09:12:40.502Z",
"roster_updated_at": null,
"game_date": "2026-10-25",
"timezone": "America/Chicago",
"kickoff_at": "2026-10-25T15:00:00-05:00",
"pitch": {
"length_m": 105,
"width_m": 68
},
"home_team": {
"team_side": "home",
"name": "Uplift Home",
"kit_color": "#ECE83A",
"goalkeeper_kit_color": "#1F8A3B"
},
"away_team": {
"team_side": "away",
"name": "Uplift Away",
"kit_color": "#1B2A4A",
"goalkeeper_kit_color": "#3A8FE0"
},
"periods": [
{
"period": 1,
"label": "first_half",
"start_time": 4,
"end_time": 2760
},
{
"period": 2,
"label": "second_half",
"start_time": 3660,
"end_time": null
}
],
"roster": null
}{
"error": "BadRequest",
"message": "The roster is not valid.",
"problems": [
"line 2: position \"G\" must be written GK"
]
}{
"error": "Unauthorized",
"message": "Bearer token is missing or invalid."
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource."
}{
"error": "NotFound",
"message": "The specified game_id was not found."
}{
"error": "Conflict",
"message": "This game has a video that is still uploading or being processed. The game, its roster and its videos can be changed once every video is ready or has failed."
}{
"error": "TooManyRequests",
"message": "The rate limit has been exceeded. Please wait and try again later."
}{
"error": "InternalServerError",
"message": "An unexpected error occurred on the server. Please try again later."
}Games
Update Game
Changes a game’s details, teams or periods. Send only the fields to change.
PUT
/
games
/
{game_id}
Update Game
curl --request PUT \
--url https://api.uplift.ai/v1/games/{game_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"game_date": "2026-10-25",
"kickoff_at": "2026-10-25T15:00:00-05:00",
"periods": [
{
"period": 1,
"label": "first_half",
"start_time": 4,
"end_time": 2760
},
{
"period": 2,
"label": "second_half",
"start_time": 3660,
"end_time": null
}
]
}
'import requests
url = "https://api.uplift.ai/v1/games/{game_id}"
payload = {
"game_date": "2026-10-25",
"kickoff_at": "2026-10-25T15:00:00-05:00",
"periods": [
{
"period": 1,
"label": "first_half",
"start_time": 4,
"end_time": 2760
},
{
"period": 2,
"label": "second_half",
"start_time": 3660,
"end_time": None
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
game_date: '2026-10-25',
kickoff_at: '2026-10-25T15:00:00-05:00',
periods: [
{period: 1, label: 'first_half', start_time: 4, end_time: 2760},
{period: 2, label: 'second_half', start_time: 3660, end_time: null}
]
})
};
fetch('https://api.uplift.ai/v1/games/{game_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.uplift.ai/v1/games/{game_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'game_date' => '2026-10-25',
'kickoff_at' => '2026-10-25T15:00:00-05:00',
'periods' => [
[
'period' => 1,
'label' => 'first_half',
'start_time' => 4,
'end_time' => 2760
],
[
'period' => 2,
'label' => 'second_half',
'start_time' => 3660,
'end_time' => null
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uplift.ai/v1/games/{game_id}"
payload := strings.NewReader("{\n \"game_date\": \"2026-10-25\",\n \"kickoff_at\": \"2026-10-25T15:00:00-05:00\",\n \"periods\": [\n {\n \"period\": 1,\n \"label\": \"first_half\",\n \"start_time\": 4,\n \"end_time\": 2760\n },\n {\n \"period\": 2,\n \"label\": \"second_half\",\n \"start_time\": 3660,\n \"end_time\": null\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.uplift.ai/v1/games/{game_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"game_date\": \"2026-10-25\",\n \"kickoff_at\": \"2026-10-25T15:00:00-05:00\",\n \"periods\": [\n {\n \"period\": 1,\n \"label\": \"first_half\",\n \"start_time\": 4,\n \"end_time\": 2760\n },\n {\n \"period\": 2,\n \"label\": \"second_half\",\n \"start_time\": 3660,\n \"end_time\": null\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uplift.ai/v1/games/{game_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"game_date\": \"2026-10-25\",\n \"kickoff_at\": \"2026-10-25T15:00:00-05:00\",\n \"periods\": [\n {\n \"period\": 1,\n \"label\": \"first_half\",\n \"start_time\": 4,\n \"end_time\": 2760\n },\n {\n \"period\": 2,\n \"label\": \"second_half\",\n \"start_time\": 3660,\n \"end_time\": null\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"game_id": "6b1e0c2a-7d8f-4a51-9b0e-2f3c1d4e5a6b",
"name": "Uplift Home v Uplift Away",
"activity": "soccer",
"updated_at": "2026-10-19T09:12:40.502Z",
"roster_updated_at": null,
"game_date": "2026-10-25",
"timezone": "America/Chicago",
"kickoff_at": "2026-10-25T15:00:00-05:00",
"pitch": {
"length_m": 105,
"width_m": 68
},
"home_team": {
"team_side": "home",
"name": "Uplift Home",
"kit_color": "#ECE83A",
"goalkeeper_kit_color": "#1F8A3B"
},
"away_team": {
"team_side": "away",
"name": "Uplift Away",
"kit_color": "#1B2A4A",
"goalkeeper_kit_color": "#3A8FE0"
},
"periods": [
{
"period": 1,
"label": "first_half",
"start_time": 4,
"end_time": 2760
},
{
"period": 2,
"label": "second_half",
"start_time": 3660,
"end_time": null
}
],
"roster": null
}{
"error": "BadRequest",
"message": "The roster is not valid.",
"problems": [
"line 2: position \"G\" must be written GK"
]
}{
"error": "Unauthorized",
"message": "Bearer token is missing or invalid."
}{
"error": "Forbidden",
"message": "You do not have permission to access this resource."
}{
"error": "NotFound",
"message": "The specified game_id was not found."
}{
"error": "Conflict",
"message": "This game has a video that is still uploading or being processed. The game, its roster and its videos can be changed once every video is ready or has failed."
}{
"error": "TooManyRequests",
"message": "The rate limit has been exceeded. Please wait and try again later."
}{
"error": "InternalServerError",
"message": "An unexpected error occurred on the server. Please try again later."
}The Game Data API is in preview. Endpoints, fields and limits may change before release, and it is not yet available to call.
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 newactivity 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 return409 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
Path Parameters
Body
application/json
At least one field.
Response
The game's details, teams, periods and, when one was sent, its roster.