Returns a list of leagues that the user has access to.
GET /v1/{sport}/leagues
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
Optional Parameters | ||
keywords |
string |
Display only where the league has the given keyword |
countryCode |
string |
Display only when the league is in the country |
competitionStandard |
string |
Display only when the league is of the specified standard |
Do not supply a request body with this method.
If successful this method returns a list of League resources.
Get the detail about a specific league
GET /v1/{sport}/leagues/{leagueId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
leagueId |
integer |
The unique identifier for this league |
Do not supply a request body with this method.
If successful this method returns a League resource.
Create a new league
POST /v1/{sport}/leagues
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
A League resource should be supplied in the request body.
If successful this method returns a League resource.
Update an existing league
PUT /v1/{sport}/leagues/{leagueId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
leagueId |
integer |
The unique identifier for this league |
A League resource should be supplied in the request body. Only the fields to be changed need to be specified.
If successful this method returns a League resource.