Skip to main content
POST
C#

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ボディ

Create an experiment with traffic allocation

name
string
必須

A human-readable name for the experiment

Required string length: 3 - 255
Pattern: ^(?!.*\x00)\S(.*\S)?$
feature_flag_id
string
必須

The ID of the feature flag this experiment is based on

Pattern: ^flg_[A-HJ-NP-Za-km-z1-9]+$
authentication_flow
enum<string>
必須

The authentication flow this experiment applies to. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, organization_selection, email_verification.

利用可能なオプション:
authentication,
mfa_enrollment,
mfa_challenge,
password_reset,
passkey_enrollment,
organization_selection,
email_verification
description
string

A description of the experiment

Required string length: 3 - 1024
Pattern: ^(?!.*\x00)\S(.*\S)?$
is_stateful
boolean

Whether the experiment requires stable per-user assignment across its life (EA only)

allocation_strategy
enum<string>

The traffic allocation strategy for this experiment

利用可能なオプション:
percentage,
segment
assignment_config
object

Configuration for how users are assigned to variations

allocations
object[]

Traffic allocations mapping variations to weights or segments

Minimum array length: 1
levels
integer[]

Ramp experiment levels configuration.

レスポンス

Experiment successfully created.

id
string
必須
Pattern: ^exp_[A-HJ-NP-Za-km-z1-9]+$
name
string
必須
feature_flag_id
string
必須
authentication_flow
string
必須
allocation_strategy
enum<string>
必須
利用可能なオプション:
percentage,
segment
assignment_config
object
必須
status
enum<string>
必須

Filter by status. Exact match.

利用可能なオプション:
draft,
active,
paused,
completed,
archived
is_valid
boolean
必須
allocations
object[]
必須
editable_fields
string[]
必須

Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic.

created_at
string<date-time>
必須
updated_at
string<date-time>
必須
description
string
is_stateful
boolean
feature_flag_snapshot
object | null
levels
integer[]

Ramp experiment levels configuration.

started_at
string<date-time>
ended_at
string<date-time>