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.
Get a list of a specific person's base career statistics.
GET /v1/{sport}/statistics/personbasecareer/persons/{personId}/
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
|
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
|
ageGroup |
string |
Display only records for an age group
|
matchType |
string |
Display only totals for certain type of matches
|
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. |
Do not supply a request body with this method.
If successful this method returns a Person Base Career Statistics resource.
Get the detail about a specific person's base career statistics.
GET /v1/{sport}/statistics/personbasecareer/persons/{personId}/{leagueId}/{matchType}/{standard}/{ageGroup}/{representation}/{representativeClubId}/{representativeCountryCode}
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
|
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
|
ageGroup |
string |
Display only records for an age group
|
matchType |
string |
Display only totals for certain type of matches
|
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. |
Do not supply a request body with this method.
If successful this method returns a Person Base Career Statistics resource.
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.
POST /v1/{sport}/leagues/{leagueId}/statistics/personbasecareer
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. |
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.
personId
representativeClubId
If successful this method returns a Person Base Career Statistics resource.