Returns a list of clubs that the user has access to.
GET /v1/{sport}/clubs
GET /v1/{sport}/leagues/{leagueId}/clubs
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
Optional Parameters | ||
leagueId |
integer |
Unique identifier for the league the club belongs to. |
keywords |
string |
Display only where the club has the given keyword |
countryCode |
string |
Display only when the club is in the country. ISO 3166 two letter country code. |
status |
string |
club status |
Do not supply a request body with this method.
If successful this method returns a list of Club resources.
Get the detail about a specific club
GET /v1/{sport}/clubs/{clubId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
clubId |
integer |
The unique identifier for this club |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the club, then the URL parameter clubId will instead refer to the externalId of the club in that league. |
Do not supply a request body with this method.
If successful this method returns a Club resource.
Create a new club
POST /v1/{sport}/leagues/{leagueId}/clubs
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
leagueId |
integer |
Unique identifier for the league the club belongs to. |
Optional Parameters | ||
minimumResponse |
integer |
If this value is set to 1 then the response resource will only contain clubId and externalId . |
bulk |
integer |
Create multiple records. |
In the request body supply a Club resource.If the bulk
parameter is specified a list of resources is expected.
If successful this method returns a Club resource. If the bulk
parameter is specified it will return a list of resources. Any errors returned are against the specific resource.
Update an existing club
PUT /v1/{sport}/clubs/{clubId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
clubId |
integer |
The unique identifier for this club |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the club, then the URL parameter clubId will instead refer to the externalId of the club in that league. |
A Club resource should be supplied in the request body. Only the fields to be changed need to be specified.
If successful this method returns a Club resource.
Delete an existing club
DELETE /v1/{sport}/clubs/{clubId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
clubId |
integer |
The unique identifier for this club |
Optional Parameters | ||
confirm |
integer |
0 = Default. FAILURE returned if cascade records found. 1 = override cascades Affected resources: |
useExternalForLeague |
integer |
If this value is set to the leagueId for the club, then the URL parameter clubId will instead refer to the externalId of the club in that league. |
Do not supply a request body with this method.
If no override flag is passed in and the clubId is involved in any of the affected resources then the DELETE will fail (returns FAILURE). Successful this method returns SUCCESS.