メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
experimentation
/
experiments
/
{id}
/
status
Transition an experiment to a new status.
curl --request POST \
  --url https://{tenantDomain}/api/v2/experimentation/experiments/{id}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "active"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "feature_flag_id": "<string>",
  "authentication_flow": "<string>",
  "allocation_strategy": "percentage",
  "assignment_config": {
    "subject": "device"
  },
  "status": "draft",
  "is_valid": true,
  "allocations": [
    {
      "variation_id": "<string>",
      "segment_id": "<string>",
      "weight": 123,
      "priority": 123,
      "is_control": true,
      "is_fallback": true
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "started_at": "2023-11-07T05:31:56Z",
  "ended_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://auth-test.auth0-mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

The ID of the experiment to transition.

ボディ

The target lifecycle status for the experiment.

status
enum<string>
必須

The target status to transition the experiment to.

利用可能なオプション:
active,
paused,
completed,
archived

レスポンス

Experiment status successfully updated.

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[]
必須
created_at
string<date-time>
必須
updated_at
string<date-time>
必須
description
string
started_at
string<date-time>
ended_at
string<date-time>