Passer au contenu principal
POST
Create an experiment for the Experiment Center.

Autorisations

Authorization
string
header
requis

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

Corps

Create an experiment with traffic allocation

name
string
requis

A human-readable name for the experiment

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

The ID of the feature flag this experiment is based on

Pattern: ^flg_[A-HJ-NP-Za-km-z1-9]+$
authentication_flow
string
requis

The authentication flow this experiment applies to

allocation_strategy
enum<string>
requis

The traffic allocation strategy for this experiment

Options disponibles:
percentage,
segment
assignment_config
object
requis

Configuration for how users are assigned to variations

allocations
object[]
requis

Traffic allocations mapping variations to weights or segments

Minimum array length: 1
description
string

A description of the experiment

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

Réponse

Experiment successfully created.

id
string
requis
Pattern: ^exp_[A-HJ-NP-Za-km-z1-9]+$
name
string
requis
feature_flag_id
string
requis
authentication_flow
string
requis
allocation_strategy
enum<string>
requis
Options disponibles:
percentage,
segment
assignment_config
object
requis
status
enum<string>
requis

Filter by status. Exact match.

Options disponibles:
draft,
active,
paused,
completed,
archived
is_valid
boolean
requis
allocations
object[]
requis
created_at
string<date-time>
requis
updated_at
string<date-time>
requis
description
string
started_at
string<date-time>
ended_at
string<date-time>