curl --request POST \
--url https://{tenantDomain}/api/v2/experimentation/experiments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"feature_flag_id": "<string>",
"authentication_flow": "<string>",
"allocation_strategy": "percentage",
"assignment_config": {
"subject": "device"
},
"allocations": [
{
"variation_id": "<string>",
"is_control": true,
"weight": 50,
"segment_id": "<string>",
"priority": 2,
"is_fallback": true
}
],
"description": "<string>"
}
'{
"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"
}Create a new experiment with traffic allocations for A/B testing.
curl --request POST \
--url https://{tenantDomain}/api/v2/experimentation/experiments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"feature_flag_id": "<string>",
"authentication_flow": "<string>",
"allocation_strategy": "percentage",
"assignment_config": {
"subject": "device"
},
"allocations": [
{
"variation_id": "<string>",
"is_control": true,
"weight": 50,
"segment_id": "<string>",
"priority": 2,
"is_fallback": true
}
],
"description": "<string>"
}
'{
"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://auth0.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Create an experiment with traffic allocation
A human-readable name for the experiment
3 - 255^(?!.*\x00)\S(.*\S)?$The ID of the feature flag this experiment is based on
^flg_[A-HJ-NP-Za-km-z1-9]+$The authentication flow this experiment applies to
The traffic allocation strategy for this experiment
percentage, segment Configuration for how users are assigned to variations
Show child attributes
Traffic allocations mapping variations to weights or segments
1Show child attributes
A description of the experiment
3 - 1024^(?!.*\x00)\S(.*\S)?$Experiment successfully created.
^exp_[A-HJ-NP-Za-km-z1-9]+$percentage, segment Show child attributes
Filter by status. Exact match.
draft, active, paused, completed, archived Show child attributes
このページは役に立ちましたか?