curl --location 'https://us-prod.notte.cc/functions/96e67e0a-7319-48cc-952e-087963a615eb/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "96e67e0a-7319-48cc-952e-087963a615eb",
"variables": {
"competition": "PL",
"timeout_seconds": 20
}
}'
{
"metadata": {
"id": 0,
"area": {
"id": 0,
"code": "<string>",
"flag": "<string>",
"name": "<string>"
},
"code": "<string>",
"name": "<string>",
"plan": "<string>",
"type": "<string>",
"emblem": "<string>",
"lastUpdated": "<string>",
"numberOfAvailableSeasons": 0
},
"current_season": {
"id": 0,
"endDate": "<string>",
"startDate": "<string>",
"currentMatchday": 0
},
"historical_seasons": [
{
"id": 0,
"winner": {
"id": 0,
"tla": "<string>",
"name": "<string>",
"crestUrl": "<string>",
"shortName": "<string>"
},
"endDate": "<string>",
"startDate": "<string>",
"currentMatchday": 0
}
]
}