Returns a list of match actions relating to a particular match.
GET /v1/{sport}/matches/{matchId}/actions
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
matchId |
integer |
Unique identifier for the match. |
Optional Parameters | ||
scoring |
integer |
If this value is set to 1 then only scoring actions (success and unsuccessful) are returned. |
useExternalForLeague |
integer |
If this value is set to the leagueId for the match, then the URL parameter matchId will instead refer to the externalId field of the match. |
Do not supply a request body with this method.
If successful this method returns an array of Match Action resources.
Get the detail about a specific match action
GET /v1/{sport}/matches/{matchId}/actions/{actionNumber}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
matchId |
integer |
The unique identifier for this match |
actionNumber |
integer |
The unique identifier for this particular action in the match |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the match, then the URL parameter matchId will instead refer to the externalId field of the match. |
Do not supply a request body with this method.
If successful this method returns a Match Action resource.
Create a new match action
POST /v1/{sport}/matches/{matchId}/actions
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
matchId |
integer |
Unique identifier for the match. |
Optional Parameters | ||
bulk |
integer |
Create multiple records. |
useExternalForLeague |
integer |
If this value is set to the leagueId for the match, then the URL parameter matchId will instead refer to the externalId field of the match. The content of the request body is interpreted differently. See the Request Body section for more information. |
In the request body supply a Match Action 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.
matchId
teamId
personId
If successful this method returns a Match Action 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 matchaction
PUT /v1/{sport}/matches/{matchId}/actions/{actionNumber}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
matchId |
integer |
The unique identifier for this match |
actionNumber |
integer |
The unique identifier for this particular action in the match |
Optional Parameters | ||
useExternalForLeague |
integer |
If this value is set to the leagueId for the match, then the URL parameter matchId will instead refer to the externalId field of the match. The content of the request body is interpreted differently. See the Request Body section for more information. |
In the request body supply a Match Action resource.
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.
matchId
teamId
personId
If successful this method returns a Match Action resource.
Delete an existing matchaction
DELETE /v1/{sport}/matches/{matchId}/actions
DELETE /v1/{sport}/matches/{matchId}/actions/{actionNumber}
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
matchId |
integer |
The unique identifier for this matchaction |
Optional Parameters | ||
acitonNumber |
integer |
The unique identifier for this particular action in the match |
useExternalForLeague |
integer |
If this value is set to the leagueId for the match, then the URL parameter matchId will instead refer to the externalId field of the match. |
Do not supply a request body with this method.
Successful this method returns SUCCESS.