Update a game
curl --request PATCH \
--url https://whistle.huddleup-sports.com/api/v1/games/{gameId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sport": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"location": "<string>"
}
'import requests
url = "https://whistle.huddleup-sports.com/api/v1/games/{gameId}"
payload = {
"sport": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"location": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sport: '<string>', startsAt: '2023-11-07T05:31:56Z', location: '<string>'})
};
fetch('https://whistle.huddleup-sports.com/api/v1/games/{gameId}', 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://whistle.huddleup-sports.com/api/v1/games/{gameId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'sport' => '<string>',
'startsAt' => '2023-11-07T05:31:56Z',
'location' => '<string>'
]),
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://whistle.huddleup-sports.com/api/v1/games/{gameId}"
payload := strings.NewReader("{\n \"sport\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://whistle.huddleup-sports.com/api/v1/games/{gameId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sport\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://whistle.huddleup-sports.com/api/v1/games/{gameId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sport\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"leagueId": "<string>",
"sport": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"location": "<string>",
"latitude": 123,
"longitude": 123,
"source": "<string>",
"externalId": "<string>",
"positions": [
{
"id": "<string>",
"label": "<string>",
"payCents": 123,
"payDollars": 123
}
]
}
}{
"error": "invalid_json"
}{
"error": "unauthorized"
}{
"error": "league_not_found"
}Games
Update a game
Only provided keys applied. Setting status writes the string directly with no side effects on positions, claims, or payments — prefer DELETE /games/{gameId} to cancel; treat status patching as advanced. Emits game.updated.
PATCH
/
games
/
{gameId}
Update a game
curl --request PATCH \
--url https://whistle.huddleup-sports.com/api/v1/games/{gameId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sport": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"location": "<string>"
}
'import requests
url = "https://whistle.huddleup-sports.com/api/v1/games/{gameId}"
payload = {
"sport": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"location": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sport: '<string>', startsAt: '2023-11-07T05:31:56Z', location: '<string>'})
};
fetch('https://whistle.huddleup-sports.com/api/v1/games/{gameId}', 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://whistle.huddleup-sports.com/api/v1/games/{gameId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'sport' => '<string>',
'startsAt' => '2023-11-07T05:31:56Z',
'location' => '<string>'
]),
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://whistle.huddleup-sports.com/api/v1/games/{gameId}"
payload := strings.NewReader("{\n \"sport\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://whistle.huddleup-sports.com/api/v1/games/{gameId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sport\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://whistle.huddleup-sports.com/api/v1/games/{gameId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sport\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"location\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"leagueId": "<string>",
"sport": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"location": "<string>",
"latitude": 123,
"longitude": 123,
"source": "<string>",
"externalId": "<string>",
"positions": [
{
"id": "<string>",
"label": "<string>",
"payCents": 123,
"payDollars": 123
}
]
}
}{
"error": "invalid_json"
}{
"error": "unauthorized"
}{
"error": "league_not_found"
}Authorizations
Partner API key: Authorization: Bearer whk_…. Keys are issued by the Whistle team (email tommy@huddleup-sports.com), shown once at issuance, and bound to your source namespace — they access only your leagues (plus explicit grants) and your webhook endpoints. Any auth failure returns 401 {"error":"unauthorized"}; the API never returns 403 — out-of-scope resources answer 404 exactly like nonexistent ones.
Path Parameters
Whistle game id (id from game responses).
Body
application/json
Response
Updated game (positions without official/payment)
Show child attributes
Show child attributes
Last modified on July 10, 2026
⌘I

