メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
experimentation
/
experiments
Experiment Center の実験を作成します。
curl --request POST \
  --url https://{tenantDomain}/api/v2/experimentation/experiments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "allocations": [
    {
      "is_control": true,
      "variation_id": "<string>",
      "is_fallback": true,
      "priority": 2,
      "segment_id": "<string>",
      "weight": 50
    }
  ],
  "assignment_config": {
    "subject": "device"
  },
  "authentication_flow": "<string>",
  "feature_flag_id": "<string>",
  "name": "<string>",
  "description": "<string>"
}
'
{
  "allocations": [
    {
      "is_control": true,
      "is_fallback": true,
      "priority": 123,
      "segment_id": "<string>",
      "variation_id": "<string>",
      "weight": 123
    }
  ],
  "assignment_config": {
    "subject": "device"
  },
  "authentication_flow": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "feature_flag_id": "<string>",
  "id": "<string>",
  "is_valid": true,
  "name": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "ended_at": "2023-11-07T05:31:56Z",
  "started_at": "2023-11-07T05:31:56Z"
}

承認

Authorization
string
header
必須

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

ボディ

トラフィック割り当てを使用して実験を作成する

allocation_strategy
enum<string>
必須

この実験のトラフィック割り当てストラテジー

利用可能なオプション:
percentage,
segment
allocations
object[]
必須

バリエーションを重みまたはセグメントに対応付けるトラフィック割り当て

Minimum array length: 1
assignment_config
object
必須

ユーザーを各バリエーションに割り当てる方法の設定

authentication_flow
string
必須

この実験が適用される認証フロー

feature_flag_id
string
必須

この実験の基となる機能フラグの ID

Pattern: ^flg_[A-HJ-NP-Za-km-z1-9]+$
name
string
必須

実験のわかりやすい名前

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

実験の説明

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

レスポンス

実験を正常に作成しました。

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

status で絞り込みます。完全一致。

利用可能なオプション:
draft,
active,
paused,
completed,
archived
updated_at
string<date-time>
必須
description
string
ended_at
string<date-time>
started_at
string<date-time>