Create Statistic Definition
Create a new entity statistic definition.
Allowed entity token types: title, game_server
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| AggregationTypeNotAllowedForLinkedStat | 23008 |
| AggregationTypeNotAllowedForMultiColumnStatistic | 1590 |
| ApiNotEnabledForTitle | 1520 |
| DuplicateColumnNameFound | 1585 |
| DuplicateStatisticName | 1253 |
| EntityTypeSpecifiedRequiresAggregationSource | 23012 |
| ExternalEntityNotAllowedForTier | 1580 |
| InvalidBaseTimeForInterval | 1581 |
| InvalidEntityTypeForAggregation | 23006 |
| MaxQueryableVersionsExceeded | 23015 |
| MaxQueryableVersionsValueNotAllowedForTier | 1591 |
| MultiLevelAggregationNotAllowed | 23007 |
| PlayFabErrorEventNotSupportedForEntityType | 23013 |
| StatisticColumnAggregationMismatch | 23002 |
| StatisticColumnLengthMismatch | 1593 |
| StatisticCountLimitExceeded | 1203 |
| StatisticDefinitionHasNullOrEmptyVersionConfiguration | 1592 |
| StatisticNameConflict | 1196 |
| StatisticNotFound | 1195 |
| VersionConfigurationCannotBeSpecifiedForLinkedStat | 23004 |
| VersionConfigurationIsRequired | 23005 |
Authorizations
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Body
Name of the statistic. Must be less than 50 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'.
The columns for the statistic defining the aggregation method for each column.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
The entity type allowed to have score(s) for this statistic.
The version reset configuration for the statistic definition.
