GET /leagues/{leagueId}
Scope: read
Parameters
Parameters — GET /leagues/{leagueId}| Name | Location | Type | Required | Description |
|---|
leagueId | path | string | Yes | |
Responses
Responses — GET /leagues/{leagueId}| Status | Description |
|---|
200 | The league and its seasons.LeagueDetail |
400 | Malformed request (INVALID_INPUT). |
401 | Missing, malformed, revoked or expired key (UNAUTHORIZED). Session cookies are worthless here. |
403 | The key lacks the required scope (FORBIDDEN), or the organization's subscription does not allow this access (ENTITLEMENT_DENIED). |
404 | Resource not found in the key's organization (NOT_FOUND). |
429 | Too many requests (RATE_LIMITED), per address or per key. Wait the number of seconds given by Retry-After, then resume with jittered exponential backoff. |
503 | Unavailable. LEAGUES_UNAVAILABLE (outage or 10 s deadline exceeded) carries Retry-After: 30; a write may then be unconfirmed, so check its state before repeating it. ENTITLEMENT_UNAVAILABLE and HOLDER_UNINITIALIZED: commercial entitlement unavailable or subscription holder not initialized. |
Response example
{
"object": "league",
"id": "5b0c2f9e-8a41-4d6b-9f3e-1a2b3c4d5e6f",
"name": "Ligue du mardi",
"sport": "CURLING",
"sportLabel": null,
"profile": {
"key": "CURLING",
"label": "Curling",
"version": 3,
"resourceKind": "SHEET",
"cadence": {
"unitsPerMatch": 8,
"minutesPerUnit": 15,
"matchesPerNight": 1,
"scoreTarget": null,
"seasonWeeks": {
"min": 10,
"max": 30
}
},
"vocabulary": {
"resource": {
"one": "feuille",
"many": "feuilles",
"genre": "F"
},
"unit": {
"one": "bout",
"many": "bouts",
"genre": "M"
},
"match": {
"one": "partie",
"many": "parties",
"genre": "F"
},
"scoreUnit": {
"one": "point",
"many": "points",
"genre": "M"
}
}
},
"timeZone": "America/Toronto",
"cadences": [
{
"id": "7e4d2c1b-0a9f-4e8d-b7c6-5a4b3c2d1e0f",
"key": "HIVER",
"label": "Hiver",
"position": 1
}
],
"seasons": [
{
"id": "c3a1e5d7-9b2f-4a6c-8e0d-1f3b5d7a9c2e",
"name": "Hiver 2027",
"cadenceId": "7e4d2c1b-0a9f-4e8d-b7c6-5a4b3c2d1e0f",
"ordinal": 1,
"status": "SETUP",
"sportProfile": "CURLING",
"sportProfileVersion": 3,
"resourceKind": "SHEET",
"cadence": {
"unitsPerMatch": 8,
"minutesPerUnit": 15,
"matchesPerNight": 1,
"scoreTarget": null,
"seasonWeeks": {
"min": 10,
"max": 30
}
},
"vocabulary": {
"resource": {
"one": "feuille",
"many": "feuilles",
"genre": "F"
},
"unit": {
"one": "bout",
"many": "bouts",
"genre": "M"
},
"match": {
"one": "partie",
"many": "parties",
"genre": "F"
},
"scoreUnit": {
"one": "point",
"many": "points",
"genre": "M"
}
}
}
]
}