Passer au contenu principal
POST
Create Statistic Definition

Autorisations

X-EntityToken
string
header
requis

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

Corps

application/json
Name
string
requis

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.

Réponse

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
Dernière modification le 6 octobre 2026