メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
experimentation
/
feature-flags
/
{id}
/
variations
Create a variation for a feature flag.
curl --request POST \
  --url https://{tenantDomain}/api/v2/experimentation/feature-flags/{id}/variations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "overrides": {},
  "description": "<string>"
}
'
{
  "id": "<string>",
  "feature_flag_id": "<string>",
  "name": "<string>",
  "overrides": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>"
}

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 parent feature flag.

ボディ

Create a variation for a feature flag

name
string
必須

A human-readable name for the variation

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

Configuration overrides for this variation; keys must exist in the parent flag parameters

description
string

A description of what this variation controls

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

レスポンス

Variation successfully created.

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

Configuration overrides for this variation

created_at
string<date-time>
必須
updated_at
string<date-time>
必須
description
string