Returns a list of competitors for a competition.
GET /v1/{sport}/competitions/{competitionId}/competitors
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
integer |
The unique identifier for the competition |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the competition, then the URL parameter competitionId will instead refer to the externalId fields of the competition in that league. |
Do not supply a request body with this method.
If successful this method returns a list of Competition Competitor resources.
Get the detail about a specific competitor in a competition
GET /v1/{sport}/competitions/{competitionId}/competitors/{competitorId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
integer |
The unique identifier for the competition |
competitorId |
integer |
The unique identifier for the competitor in this competition. If the competition is team based, then this is the teamId, if person based, then this should be the personId. |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the competition, then the URL parameters competitionId and competitorId will instead refer to the externalId fields of the respective entities in that league. |
Do not supply a request body with this method.
If successful this method returns a Competition Competitor resource.
Update an existing competitor in a competition
Competitors are automatically added to a competition by virtue of being in a match in the competition. This update functionality allows you to change some detail about the competitior in the competition without affecting the match. This may be for example to mark the competitor as no longer being in the competition but keep their matches.
PUT /v1/{sport}/competitions/{competitionId}/competitors/{competitorId}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
competitionId |
integer |
The unique identifier for the competition |
competitorId |
integer |
The unique identifier for the competitor in this match. If the competition is team based, then this is the teamId, if person based, then this should be the personId. |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the competition, then the URL parameters competitionId and competitorId will instead refer to the externalId of the resepective entities in that league. |
In the request body supply a Competition Competitors resource.
If successful this method returns a Competition Competitors resource.