curl --location 'https://us-prod.notte.cc/functions/c28c670c-f029-4392-9dfc-706277c2d3a4/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "c28c670c-f029-4392-9dfc-706277c2d3a4",
"variables": {}
}'
{
"season": 0,
"central_league": {
"teams": [
{
"ties": 0,
"wins": 0,
"losses": 0,
"position": 0,
"team_name": "<string>",
"home_record": "<string>",
"road_record": "<string>",
"games_behind": "<string>",
"games_played": 0,
"interleague_record": "<string>",
"winning_percentage": 0,
"head_to_head_records": [
{
"record": "<string>",
"opponent_code": "<string>",
"opponent_team_name": "<string>"
}
]
}
],
"league_name": "<string>"
},
"pacific_league": {
"teams": [
{
"ties": 0,
"wins": 0,
"losses": 0,
"position": 0,
"team_name": "<string>",
"home_record": "<string>",
"road_record": "<string>",
"games_behind": "<string>",
"games_played": 0,
"interleague_record": "<string>",
"winning_percentage": 0,
"head_to_head_records": [
{
"record": "<string>",
"opponent_code": "<string>",
"opponent_team_name": "<string>"
}
]
}
],
"league_name": "<string>"
}
}