Returns a list of pools for a competition.
GET /v1/{sport}/competitions/{competitionId}/pools
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
string |
The competition for which you are making the request |
Optional Parameters | ||
phaseName |
string |
Phase/Stage name for this pool |
useExternalForLeague |
integer |
If this value is set to the leagueId for the pool, then the URL parameter competitionId will instead refer to the externalId of the competition in that league. |
Do not supply a request body with this method.
If successful this method returns a list of Pools resources.
Get the detail about a specific pool
GET /v1/{sport}/competitions/{competitionId}/pools/{poolNumber}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
poolNumber |
integer |
pool number |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the pool , then the URL parameter poolNumber will instead refer to the externalId of the pool in that league. |
Do not supply a request body with this method.
If successful this method returns a Pools resource.
Create a new pool
POST /v1/{sport}/competitions/{competitionId}/pools
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
integer |
Unique identifier for the competition the pool belongs to. |
Optional Parameters | ||
minimumResponse |
integer |
If this value is set to 1 then the response resource will only contain personId and externalId . |
bulk |
integer |
Create multiple records. |
useExternalForLeague |
integer |
If this value is set to the leagueId for the pool, then the URL parameter competitionId will instead refer to the externalId of the competition in that league. The content of the request body is interpreted differently. See the Request Body section for more information. |
In the request body supply a Pools 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 Pools 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 pool
PUT /v1/{sport}/competitions/{competitionId}/pools/{poolNumber}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
poolNumber |
integer |
The number of the pool in the competition |
competitionId |
integer |
The unique identifier for this competition |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the pool, then the URL parameters competitionId and poolNumber will instead refer to the externalId of their respective entity. The content of the request body is interpreted differently. See the Request Body section for more information. |
A Pool resource should be supplied in the request body. Only the fields to be changed need to be specified.
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 Pools resource.
Delete an existing pool
DELETE /v1/{sport}/competitions/{competitionId}/pools/{poolNumber}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
number |
The unique identifier for the competition |
poolNumber |
integer |
The number of the pool in the competition |
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 pool, then the URL parameters competitionId and poolNumber will instead refer to the externalId of their respective entity. |
Do not supply a request body with this method.
If no override is flag passed in and the poolNumber is involved in any of the affected resources then the DELETE will fail (returns FAILURE). Successful this method returns SUCCESS.