Get the detail about a specific competition's format
GET /v1/{sport}/competitions/{competitionId}/format
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
integer |
The unique identifier for this competition |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the competition, then the URL parameters competitionId will instead refer to the externalId field of the competition in that league. |
Do not supply a request body with this method.
If successful this method returns a Competition Format resource.
Create detail about the format about a specific competition. Both the PUT and POST verbs are accepted as the system will handle any creation/editing logic.
Note: Only the fields being sent for the resource will be returned. For a full list of fields, do a detail call as above.
POST /v1/{sport}/leagues/{leagueId}/competitions/format
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 |
Optional Parameters | ||
bulk |
integer |
Create multiple records. |
useExternalForLeague |
integer |
If this value is set to the leagueId for the competition, then the content of the request body is interpreted differently. See the Request Body section for more information. |
In the request body supply a Competition Format resource. If the bulk
parameter is specified a list of resources is expected.
If the useExternalForLeague
parameter is specified, then the following fields in the resource will be interpreted as the externalId
of the specific entity instead of the unique identifier.
competitionId
If successful this method returns a Competition Format resource. If the bulk
parameter is specified it will return a list of resources. Any errors returned are against the specific resource.
Delete an existing competition's format
DELETE /v1/{sport}/competitions/{competitionId}/format
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
integer |
The unique identifier for this competition |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the competition, then the URL parameters competitionId will instead refer to the externalId field of the competition in that league. |
Do not supply a request body with this method.
Successful this method returns SUCCESS.