Team Match Statistics

Request: GET

Returns a list of team match statistics that the user has access to.

HTTP Request

GET /v1/{sport}/statistics/teammatch/competitions/{competitionId}
GET /v1/{sport}/statistics/teammatch/competitions/{competitionId}/teams/{teamId}
GET /v1/{sport}/statistics/teammatch/matches/{matchId}
GET /v1/{sport}/statistics/teammatch/matches/{matchId}/teams/{teamId}

Parameters

Parameter Name Value Description
Required Parameters
sport string The sport for which you are making the request
Optional Parameters
competitionId integer Unique identifier for the competition.
matchId integer Unique identifier for the match.
teamId integer Unique identifier for the team.
periodNumber integer Return statistics for only a given period. 0 = total game
periodType string The type of period.
  • REGULAR
  • OVERTIME
useExternalForLeague integer If this value is set to the leagueId, then the URL parameters teamId, matchId and competitionId will instead refer to the externalId fields of the respective entities in that league.

Request Body

Do not supply a request body with this method.

Response

If successful this method returns a list of Team Match Statistics resources.

Request: GET

Get the detail about a specific team's performance in a particular match

HTTP Request

GET /v1/{sport}/statistics/teammatch/matches/{matchId}/teams/{teamId}/periods/{periodNumber}/{periodType}
GET /v1/{sport}/statistics/teammatch/matches/{matchId}/teams/{teamId}/periods/{periodNumber} (Assumes period is not overtime)

Parameters

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
teamId integer The unique identifier for this team
periodNumber integer The statistics relate to this period number. 0 = total game
periodType string The type of period.
  • REGULAR
  • OVERTIME
Optional Parameters
useExternalForLeague integer If this value is set to the leagueId, then the URL parameters teamId and matchId will instead refer to the externalId fields of the respective entities in that league.

Request Body

Do not supply a request body with this method.

Response

If successful this method returns a Team Match Statistics resource.

Request: POST, Request: PUT

Create detail about a specific team's performance in a particular match. 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.

HTTP Request

POST /v1/{sport}/leagues/{leagueId}/statistics/teammatch

Parameters

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
minimumResponse integer If this value is set to 1 then the response resource will only contain contain minimal identifying fields.
bulk integer Create multiple records.
useExternalForLeague integer If this value is set to the leagueId, then the content of the request body is interpreted differently. See the Request Body section for more information.

Request Body

In the request body supply a Team Match Statistics 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.

Response

If successful this method returns a Team Match Statistics resource. If the bulk parameter is specified it will return a list of resources. Any errors returned are against the specific resource.

Request: DELETE

Delete an existing team's performance in a particular match

HTTP Request

DELETE /v1/{sport}/statistics/teammatch/matches/{matchId}/teams/{teamId}/periods/{periodNumber}/{periodType}

Parameters

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
teamId integer The unique identifier for this team
periodNumber integer Return statistics for only a given period. 0 = total game
periodType string The type of period.
  • REGULAR
  • OVERTIME
Optional Parameters
useExternalForLeague integer If this value is set to the leagueId, then the URL parameters teamId and matchId will instead refer to the externalId fields of the respective entities in that league.

Request Body

Do not supply a request body with this method.

Response

Successful this method returns SUCCESS.
Team Competition Statistics will need to be rebuilt.