Skip to main content
POST
Create Statistic Definition

Authorizations

X-EntityToken
string
header
required

This API requires an Entity Session Token, available from the Entity GetEntityToken method.

Body

application/json
Name
string
required

Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'.

AggregationSources
string[]

[In Preview]: The list of statistic definition names whose scores must be aggregated towards this stat. If AggregationSource is specified, the entityType of this definition MUST be Title (making it a CommunityStat). Currently, only one aggregation source can be specified.

Columns
object[]

The columns for the statistic defining the aggregation method for each column. A maximum of 5 columns are allowed.

CustomTags
object

The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

EntityType
string

The entity type allowed to have score(s) for this statistic.

EventEmissionConfig
object

[In Preview]: Configurations for different Statistics events that can be emitted by the service.

VersionConfiguration
object

The version reset configuration for the statistic definition.

Response

code
integer

The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.

status
string

The Http status code as a string.

data
object
Last modified on October 1, 2026