跳转到主要内容
POST
Create Statistic Definition

授权

X-EntityToken
string
header
必填

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

请求体

application/json
Name
string
必填

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.

响应

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
最后修改于 2026年10月6日