跳转到主要内容
POST
Update Experiment

授权

X-EntityToken
string
header
必填

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

请求体

application/json

Given a title entity token and experiment details, this API updates the experiment. If an experiment is already running, only the description and duration properties can be updated.

Given a title entity token and experiment details, this API updates the experiment. If an experiment is already running, only the description and duration properties can be updated.

Id
string
必填

Id of the experiment.

Name
string
必填

Friendly name of the experiment.

StartDate
string
必填

When experiment should start.

Variants
object[]
必填

List of variants for the experiment.

CustomTags
object

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

Description
string

Description of the experiment.

EndDate
string

When experiment should end.

ExclusionGroupId
string

Id of the exclusion group.

ExclusionGroupTrafficAllocation
number

Percentage of exclusion group traffic that will see this experiment.

ExperimentType
enum<string>

Type of experiment.

可用选项:
Active,
Snapshot
SegmentId
string

Id of the segment to which this experiment applies. Defaults to the 'All Players' segment.

TitlePlayerAccountTestIds
string[]

List of title player account IDs that automatically receive treatments in the experiment, but are not included when calculating experiment metrics.

响应

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日