Person Base Career Statistics

Ideally base Career Statistics are not used and all career statistics are built automatically from the Person's Match Statistics. But if all the data for the person is not present then these statistics can be added for a baseline that match statistics can be added to.

Request: GET

Get a list of a specific person's base career statistics.

HTTP Request

GET /v1/{sport}/statistics/personbasecareer/persons/{personId}/

Parameters

Parameter Name Value Description
Required Parameters
sport string The sport for which you are making the request
personId integer The unique identifier for this person
Optional Parameters
leagueId integer Display only records scored from a particular league
representation string Display only records when representating
  • COUNTRY A nation/country
  • CLUB A club/team
  • ALL All - default
representativeClubId integer Display only records when representing a particular club
representativeCountryCode string Display only records when representing a particular country
standard integer Display only records of a particular standard
  • OLYMPICS Olympics
  • WORLD_CHAMPIONSHIPS World Championships
  • ZONE_CHAMPIONSHIPS International Zone Championships
  • NONCONTINENTAL_CHAMPIONSHIPS Non-Continental Championships
  • FRIENDLIES International Friendlies
  • INTERNATIONAL International
  • REGION Regional
  • ELITE Professional/elite organisation
  • TIER2 - lesser standard than elite
  • TIER3 - lesser standard than tier 2
  • GRASS_ROOTS - normal standard
  • ALL All - default
ageGroup string Display only records for an age group
  • JUNIOR Child/Teenage (below 18)
  • SENIOR Adult, 18+
  • MASTERS More senior ages, 40+
  • ALL All - default
matchType string Display only totals for certain type of matches
  • PRESEASON Pre Season
  • REGULAR Regular matches
  • FINALS Finals/Playoffs
  • ALL The total of regular and finals
useExternalForLeague integer If this value is set to the leagueId, then the URL parameters personId and representativeClubId will instead refer to the externalId fields of their respective entities in that league.

Request Body

Do not supply a request body with this method.

Response

If successful this method returns a Person Base Career Statistics resource.

Request: GET

Get the detail about a specific person's base career statistics.

HTTP Request

GET /v1/{sport}/statistics/personbasecareer/persons/{personId}/{leagueId}/{matchType}/{standard}/{ageGroup}/{representation}/{representativeClubId}/{representativeCountryCode}

Parameters

Parameter Name Value Description
Required Parameters
sport string The sport for which you are making the request
personId integer The unique identifier for this person
leagueId integer Display only records scored from a particular league
representation string Display only records when representating
  • COUNTRY A nation/country
  • CLUB A club/team
  • ALL All - default
representativeClubId integer Display only records when representing a particular club
representativeCountryCode string Display only records when representing a particular country
standard integer Display only records of a particular standard
  • OLYMPICS Olympics
  • WORLD_CHAMPIONSHIPS World Championships
  • ZONE_CHAMPIONSHIPS International Zone Championships
  • NONCONTINENTAL_CHAMPIONSHIPS Non-Continental Championships
  • FRIENDLIES International Friendlies
  • INTERNATIONAL International
  • REGION Regional
  • ELITE Professional/elite organisation
  • TIER2 - lesser standard than elite
  • TIER3 - lesser standard than tier 2
  • GRASS_ROOTS - normal standard
  • ALL All - default
ageGroup string Display only records for an age group
  • JUNIOR Child/Teenage (below 18)
  • SENIOR Adult, 18+
  • MASTERS More senior ages, 40+
  • ALL All - default
matchType string Display only totals for certain type of matches
  • PRESEASON Pre Season
  • REGULAR Regular matches
  • FINALS Finals/Playoffs
  • ALL The total of regular and finals
useExternalForLeague integer If this value is set to the leagueId, then the URL parameters personId and representativeClubId will instead refer to the externalId fields of their respective entities in that league.

Request Body

Do not supply a request body with this method.

Response

If successful this method returns a Person Base Career Statistics resource.

Request: POST, Request: PUT

Create detail about a specific person's performance. Both the PUT and POST verbs are accepted as the system will handle any creation/editing logic.

Do not add in total rows, the data will be totalled automatically with person career statistics.

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/personbasecareer

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 leagueId
Optional Parameters
minimumResponse integer If this value is set to 1 then the response resource will only 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 Person Base Career Statistics 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.

Response

If successful this method returns a Person Base Career Statistics resource.