Create a single experiment
curl -X POST 'https://api.growthbook.io/api/v1/experiments' \
-H 'Authorization: Bearer YOUR_API_KEY'import requests
url = "https://api.growthbook.io/api/v1/experiments"
payload = {
"trackingKey": "<string>",
"name": "<string>",
"variations": [
{
"key": "<string>",
"name": "<string>",
"id": "<string>",
"description": "<string>",
"screenshots": [
{
"path": "<string>",
"width": 123,
"height": 123,
"description": "<string>"
}
]
}
],
"datasourceId": "<string>",
"assignmentQueryId": "<string>",
"bypassDuplicateKeyCheck": True,
"project": "<string>",
"templateId": "<string>",
"hypothesis": "<string>",
"description": "<string>",
"tags": ["<string>"],
"metrics": ["<string>"],
"secondaryMetrics": ["<string>"],
"guardrailMetrics": ["<string>"],
"activationMetric": "<string>",
"segmentId": "<string>",
"queryFilter": "<string>",
"owner": "<string>",
"archived": True,
"autoRefresh": True,
"hashAttribute": "<string>",
"fallbackAttribute": "<string>",
"hashVersion": 1,
"disableStickyBucketing": True,
"bucketVersion": 123,
"minBucketVersion": 123,
"releasedVariationId": "<string>",
"excludeFromPayload": True,
"phases": [
{
"name": "<string>",
"dateStarted": "2023-11-07T05:31:56Z",
"dateEnded": "2023-11-07T05:31:56Z",
"reasonForStopping": "<string>",
"seed": "<string>",
"coverage": 123,
"prerequisites": [
{
"id": "<string>",
"condition": "<string>"
}
],
"reason": "<string>",
"condition": "<string>",
"savedGroupTargeting": [{ "savedGroups": ["<string>"] }],
"variationWeights": [123]
}
],
"regressionAdjustmentEnabled": True,
"sequentialTestingEnabled": True,
"sequentialTestingTuningParameter": 123,
"banditScheduleValue": 123,
"banditBurnInValue": 123,
"banditConversionWindowValue": 123,
"postStratificationEnabled": True,
"decisionFrameworkSettings": {
"decisionCriteriaId": "<string>",
"decisionFrameworkMetricOverrides": [
{
"id": "<string>",
"targetMDE": 123
}
]
},
"metricOverrides": [
{
"id": "<string>",
"windowHours": 123,
"delayHours": 123,
"properPriorOverride": True,
"properPriorEnabled": True,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": True,
"regressionAdjustmentEnabled": True,
"regressionAdjustmentDays": 123
}
],
"defaultDashboardId": "<string>",
"customFields": {},
"customMetricSlices": [{ "slices": [
{
"column": "<string>",
"levels": ["<string>"]
}
] }],
"precomputedUnitDimensionIds": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
trackingKey: '<string>',
name: '<string>',
variations: [
{
key: '<string>',
name: '<string>',
id: '<string>',
description: '<string>',
screenshots: [{path: '<string>', width: 123, height: 123, description: '<string>'}]
}
],
datasourceId: '<string>',
assignmentQueryId: '<string>',
bypassDuplicateKeyCheck: true,
project: '<string>',
templateId: '<string>',
hypothesis: '<string>',
description: '<string>',
tags: ['<string>'],
metrics: ['<string>'],
secondaryMetrics: ['<string>'],
guardrailMetrics: ['<string>'],
activationMetric: '<string>',
segmentId: '<string>',
queryFilter: '<string>',
owner: '<string>',
archived: true,
autoRefresh: true,
hashAttribute: '<string>',
fallbackAttribute: '<string>',
hashVersion: 1,
disableStickyBucketing: true,
bucketVersion: 123,
minBucketVersion: 123,
releasedVariationId: '<string>',
excludeFromPayload: true,
phases: [
{
name: '<string>',
dateStarted: '2023-11-07T05:31:56Z',
dateEnded: '2023-11-07T05:31:56Z',
reasonForStopping: '<string>',
seed: '<string>',
coverage: 123,
prerequisites: [{id: '<string>', condition: '<string>'}],
reason: '<string>',
condition: '<string>',
savedGroupTargeting: [{savedGroups: ['<string>']}],
variationWeights: [123]
}
],
regressionAdjustmentEnabled: true,
sequentialTestingEnabled: true,
sequentialTestingTuningParameter: 123,
banditScheduleValue: 123,
banditBurnInValue: 123,
banditConversionWindowValue: 123,
postStratificationEnabled: true,
decisionFrameworkSettings: {
decisionCriteriaId: '<string>',
decisionFrameworkMetricOverrides: [{id: '<string>', targetMDE: 123}]
},
metricOverrides: [
{
id: '<string>',
windowHours: 123,
delayHours: 123,
properPriorOverride: true,
properPriorEnabled: true,
properPriorMean: 123,
properPriorStdDev: 123,
regressionAdjustmentOverride: true,
regressionAdjustmentEnabled: true,
regressionAdjustmentDays: 123
}
],
defaultDashboardId: '<string>',
customFields: {},
customMetricSlices: [{slices: [{column: '<string>', levels: ['<string>']}]}],
precomputedUnitDimensionIds: ['<string>']
})
};
fetch('https://api.growthbook.io/api/v1/experiments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.growthbook.io/api/v1/experiments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'trackingKey' => '<string>',
'name' => '<string>',
'variations' => [
[
'key' => '<string>',
'name' => '<string>',
'id' => '<string>',
'description' => '<string>',
'screenshots' => [
[
'path' => '<string>',
'width' => 123,
'height' => 123,
'description' => '<string>'
]
]
]
],
'datasourceId' => '<string>',
'assignmentQueryId' => '<string>',
'bypassDuplicateKeyCheck' => true,
'project' => '<string>',
'templateId' => '<string>',
'hypothesis' => '<string>',
'description' => '<string>',
'tags' => [
'<string>'
],
'metrics' => [
'<string>'
],
'secondaryMetrics' => [
'<string>'
],
'guardrailMetrics' => [
'<string>'
],
'activationMetric' => '<string>',
'segmentId' => '<string>',
'queryFilter' => '<string>',
'owner' => '<string>',
'archived' => true,
'autoRefresh' => true,
'hashAttribute' => '<string>',
'fallbackAttribute' => '<string>',
'hashVersion' => 1,
'disableStickyBucketing' => true,
'bucketVersion' => 123,
'minBucketVersion' => 123,
'releasedVariationId' => '<string>',
'excludeFromPayload' => true,
'phases' => [
[
'name' => '<string>',
'dateStarted' => '2023-11-07T05:31:56Z',
'dateEnded' => '2023-11-07T05:31:56Z',
'reasonForStopping' => '<string>',
'seed' => '<string>',
'coverage' => 123,
'prerequisites' => [
[
'id' => '<string>',
'condition' => '<string>'
]
],
'reason' => '<string>',
'condition' => '<string>',
'savedGroupTargeting' => [
[
'savedGroups' => [
'<string>'
]
]
],
'variationWeights' => [
123
]
]
],
'regressionAdjustmentEnabled' => true,
'sequentialTestingEnabled' => true,
'sequentialTestingTuningParameter' => 123,
'banditScheduleValue' => 123,
'banditBurnInValue' => 123,
'banditConversionWindowValue' => 123,
'postStratificationEnabled' => true,
'decisionFrameworkSettings' => [
'decisionCriteriaId' => '<string>',
'decisionFrameworkMetricOverrides' => [
[
'id' => '<string>',
'targetMDE' => 123
]
]
],
'metricOverrides' => [
[
'id' => '<string>',
'windowHours' => 123,
'delayHours' => 123,
'properPriorOverride' => true,
'properPriorEnabled' => true,
'properPriorMean' => 123,
'properPriorStdDev' => 123,
'regressionAdjustmentOverride' => true,
'regressionAdjustmentEnabled' => true,
'regressionAdjustmentDays' => 123
]
],
'defaultDashboardId' => '<string>',
'customFields' => [
],
'customMetricSlices' => [
[
'slices' => [
[
'column' => '<string>',
'levels' => [
'<string>'
]
]
]
]
],
'precomputedUnitDimensionIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.growthbook.io/api/v1/experiments"
payload := strings.NewReader("{\n \"trackingKey\": \"<string>\",\n \"name\": \"<string>\",\n \"variations\": [\n {\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"screenshots\": [\n {\n \"path\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"description\": \"<string>\"\n }\n ]\n }\n ],\n \"datasourceId\": \"<string>\",\n \"assignmentQueryId\": \"<string>\",\n \"bypassDuplicateKeyCheck\": true,\n \"project\": \"<string>\",\n \"templateId\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"description\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"metrics\": [\n \"<string>\"\n ],\n \"secondaryMetrics\": [\n \"<string>\"\n ],\n \"guardrailMetrics\": [\n \"<string>\"\n ],\n \"activationMetric\": \"<string>\",\n \"segmentId\": \"<string>\",\n \"queryFilter\": \"<string>\",\n \"owner\": \"<string>\",\n \"archived\": true,\n \"autoRefresh\": true,\n \"hashAttribute\": \"<string>\",\n \"fallbackAttribute\": \"<string>\",\n \"hashVersion\": 1,\n \"disableStickyBucketing\": true,\n \"bucketVersion\": 123,\n \"minBucketVersion\": 123,\n \"releasedVariationId\": \"<string>\",\n \"excludeFromPayload\": true,\n \"phases\": [\n {\n \"name\": \"<string>\",\n \"dateStarted\": \"2023-11-07T05:31:56Z\",\n \"dateEnded\": \"2023-11-07T05:31:56Z\",\n \"reasonForStopping\": \"<string>\",\n \"seed\": \"<string>\",\n \"coverage\": 123,\n \"prerequisites\": [\n {\n \"id\": \"<string>\",\n \"condition\": \"<string>\"\n }\n ],\n \"reason\": \"<string>\",\n \"condition\": \"<string>\",\n \"savedGroupTargeting\": [\n {\n \"savedGroups\": [\n \"<string>\"\n ]\n }\n ],\n \"variationWeights\": [\n 123\n ]\n }\n ],\n \"regressionAdjustmentEnabled\": true,\n \"sequentialTestingEnabled\": true,\n \"sequentialTestingTuningParameter\": 123,\n \"banditScheduleValue\": 123,\n \"banditBurnInValue\": 123,\n \"banditConversionWindowValue\": 123,\n \"postStratificationEnabled\": true,\n \"decisionFrameworkSettings\": {\n \"decisionCriteriaId\": \"<string>\",\n \"decisionFrameworkMetricOverrides\": [\n {\n \"id\": \"<string>\",\n \"targetMDE\": 123\n }\n ]\n },\n \"metricOverrides\": [\n {\n \"id\": \"<string>\",\n \"windowHours\": 123,\n \"delayHours\": 123,\n \"properPriorOverride\": true,\n \"properPriorEnabled\": true,\n \"properPriorMean\": 123,\n \"properPriorStdDev\": 123,\n \"regressionAdjustmentOverride\": true,\n \"regressionAdjustmentEnabled\": true,\n \"regressionAdjustmentDays\": 123\n }\n ],\n \"defaultDashboardId\": \"<string>\",\n \"customFields\": {},\n \"customMetricSlices\": [\n {\n \"slices\": [\n {\n \"column\": \"<string>\",\n \"levels\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"precomputedUnitDimensionIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.growthbook.io/api/v1/experiments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"trackingKey\": \"<string>\",\n \"name\": \"<string>\",\n \"variations\": [\n {\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"screenshots\": [\n {\n \"path\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"description\": \"<string>\"\n }\n ]\n }\n ],\n \"datasourceId\": \"<string>\",\n \"assignmentQueryId\": \"<string>\",\n \"bypassDuplicateKeyCheck\": true,\n \"project\": \"<string>\",\n \"templateId\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"description\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"metrics\": [\n \"<string>\"\n ],\n \"secondaryMetrics\": [\n \"<string>\"\n ],\n \"guardrailMetrics\": [\n \"<string>\"\n ],\n \"activationMetric\": \"<string>\",\n \"segmentId\": \"<string>\",\n \"queryFilter\": \"<string>\",\n \"owner\": \"<string>\",\n \"archived\": true,\n \"autoRefresh\": true,\n \"hashAttribute\": \"<string>\",\n \"fallbackAttribute\": \"<string>\",\n \"hashVersion\": 1,\n \"disableStickyBucketing\": true,\n \"bucketVersion\": 123,\n \"minBucketVersion\": 123,\n \"releasedVariationId\": \"<string>\",\n \"excludeFromPayload\": true,\n \"phases\": [\n {\n \"name\": \"<string>\",\n \"dateStarted\": \"2023-11-07T05:31:56Z\",\n \"dateEnded\": \"2023-11-07T05:31:56Z\",\n \"reasonForStopping\": \"<string>\",\n \"seed\": \"<string>\",\n \"coverage\": 123,\n \"prerequisites\": [\n {\n \"id\": \"<string>\",\n \"condition\": \"<string>\"\n }\n ],\n \"reason\": \"<string>\",\n \"condition\": \"<string>\",\n \"savedGroupTargeting\": [\n {\n \"savedGroups\": [\n \"<string>\"\n ]\n }\n ],\n \"variationWeights\": [\n 123\n ]\n }\n ],\n \"regressionAdjustmentEnabled\": true,\n \"sequentialTestingEnabled\": true,\n \"sequentialTestingTuningParameter\": 123,\n \"banditScheduleValue\": 123,\n \"banditBurnInValue\": 123,\n \"banditConversionWindowValue\": 123,\n \"postStratificationEnabled\": true,\n \"decisionFrameworkSettings\": {\n \"decisionCriteriaId\": \"<string>\",\n \"decisionFrameworkMetricOverrides\": [\n {\n \"id\": \"<string>\",\n \"targetMDE\": 123\n }\n ]\n },\n \"metricOverrides\": [\n {\n \"id\": \"<string>\",\n \"windowHours\": 123,\n \"delayHours\": 123,\n \"properPriorOverride\": true,\n \"properPriorEnabled\": true,\n \"properPriorMean\": 123,\n \"properPriorStdDev\": 123,\n \"regressionAdjustmentOverride\": true,\n \"regressionAdjustmentEnabled\": true,\n \"regressionAdjustmentDays\": 123\n }\n ],\n \"defaultDashboardId\": \"<string>\",\n \"customFields\": {},\n \"customMetricSlices\": [\n {\n \"slices\": [\n {\n \"column\": \"<string>\",\n \"levels\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"precomputedUnitDimensionIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.growthbook.io/api/v1/experiments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"trackingKey\": \"<string>\",\n \"name\": \"<string>\",\n \"variations\": [\n {\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"screenshots\": [\n {\n \"path\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"description\": \"<string>\"\n }\n ]\n }\n ],\n \"datasourceId\": \"<string>\",\n \"assignmentQueryId\": \"<string>\",\n \"bypassDuplicateKeyCheck\": true,\n \"project\": \"<string>\",\n \"templateId\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"description\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"metrics\": [\n \"<string>\"\n ],\n \"secondaryMetrics\": [\n \"<string>\"\n ],\n \"guardrailMetrics\": [\n \"<string>\"\n ],\n \"activationMetric\": \"<string>\",\n \"segmentId\": \"<string>\",\n \"queryFilter\": \"<string>\",\n \"owner\": \"<string>\",\n \"archived\": true,\n \"autoRefresh\": true,\n \"hashAttribute\": \"<string>\",\n \"fallbackAttribute\": \"<string>\",\n \"hashVersion\": 1,\n \"disableStickyBucketing\": true,\n \"bucketVersion\": 123,\n \"minBucketVersion\": 123,\n \"releasedVariationId\": \"<string>\",\n \"excludeFromPayload\": true,\n \"phases\": [\n {\n \"name\": \"<string>\",\n \"dateStarted\": \"2023-11-07T05:31:56Z\",\n \"dateEnded\": \"2023-11-07T05:31:56Z\",\n \"reasonForStopping\": \"<string>\",\n \"seed\": \"<string>\",\n \"coverage\": 123,\n \"prerequisites\": [\n {\n \"id\": \"<string>\",\n \"condition\": \"<string>\"\n }\n ],\n \"reason\": \"<string>\",\n \"condition\": \"<string>\",\n \"savedGroupTargeting\": [\n {\n \"savedGroups\": [\n \"<string>\"\n ]\n }\n ],\n \"variationWeights\": [\n 123\n ]\n }\n ],\n \"regressionAdjustmentEnabled\": true,\n \"sequentialTestingEnabled\": true,\n \"sequentialTestingTuningParameter\": 123,\n \"banditScheduleValue\": 123,\n \"banditBurnInValue\": 123,\n \"banditConversionWindowValue\": 123,\n \"postStratificationEnabled\": true,\n \"decisionFrameworkSettings\": {\n \"decisionCriteriaId\": \"<string>\",\n \"decisionFrameworkMetricOverrides\": [\n {\n \"id\": \"<string>\",\n \"targetMDE\": 123\n }\n ]\n },\n \"metricOverrides\": [\n {\n \"id\": \"<string>\",\n \"windowHours\": 123,\n \"delayHours\": 123,\n \"properPriorOverride\": true,\n \"properPriorEnabled\": true,\n \"properPriorMean\": 123,\n \"properPriorStdDev\": 123,\n \"regressionAdjustmentOverride\": true,\n \"regressionAdjustmentEnabled\": true,\n \"regressionAdjustmentDays\": 123\n }\n ],\n \"defaultDashboardId\": \"<string>\",\n \"customFields\": {},\n \"customMetricSlices\": [\n {\n \"slices\": [\n {\n \"column\": \"<string>\",\n \"levels\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"precomputedUnitDimensionIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"experiment": {
"id": "<string>",
"trackingKey": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"dateUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"project": "<string>",
"hypothesis": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"owner": "<string>",
"archived": true,
"status": "<string>",
"autoRefresh": true,
"hashAttribute": "<string>",
"hashVersion": 1,
"variations": [
{
"variationId": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"screenshots": [
"<string>"
]
}
],
"phases": [
{
"name": "<string>",
"dateStarted": "<string>",
"dateEnded": "<string>",
"reasonForStopping": "<string>",
"seed": "<string>",
"coverage": 123,
"trafficSplit": [
{
"variationId": "<string>",
"weight": 123
}
],
"targetingCondition": "<string>",
"namespace": {
"namespaceId": "<string>",
"enabled": true,
"range": [
123
],
"ranges": [
[
123,
123
]
]
},
"prerequisites": [
{
"id": "<string>",
"condition": "<string>"
}
],
"savedGroupTargeting": [
{
"savedGroups": [
"<string>"
]
}
]
}
],
"settings": {
"datasourceId": "<string>",
"assignmentQueryId": "<string>",
"experimentId": "<string>",
"segmentId": "<string>",
"queryFilter": "<string>",
"goals": [
{
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
],
"secondaryMetrics": [
{
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
],
"guardrails": [
{
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
],
"lookbackOverride": {
"value": 123
},
"regressionAdjustmentEnabled": true,
"sequentialTestingEnabled": true,
"sequentialTestingTuningParameter": 123,
"postStratificationEnabled": true,
"decisionFrameworkSettings": {
"decisionCriteriaId": "<string>",
"decisionFrameworkMetricOverrides": [
{
"id": "<string>",
"targetMDE": 123
}
]
},
"metricOverrides": [
{
"id": "<string>",
"windowHours": 123,
"delayHours": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
],
"activationMetric": {
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
},
"ownerEmail": "<string>",
"fallbackAttribute": "<string>",
"disableStickyBucketing": true,
"bucketVersion": 123,
"minBucketVersion": 123,
"resultSummary": {
"status": "<string>",
"winner": "<string>",
"conclusions": "<string>",
"releasedVariationId": "<string>",
"excludeFromPayload": true
},
"publicUrl": "<string>",
"banditScheduleValue": 123,
"banditBurnInValue": 123,
"banditConversionWindowValue": 123,
"linkedFeatures": [
"<string>"
],
"hasVisualChangesets": true,
"hasURLRedirects": true,
"customFields": {},
"customMetricSlices": [
{
"slices": [
{
"column": "<string>",
"levels": [
"<string>"
]
}
]
}
],
"precomputedUnitDimensionIds": [
"<string>"
],
"defaultDashboardId": "<string>",
"templateId": "<string>",
"statusUpdateSchedule": {
"startAt": "2023-11-07T05:31:56Z"
},
"nextScheduledStatusUpdate": {
"type": "start",
"date": "2023-11-07T05:31:56Z"
}
}
}Authorizations
If using Bearer auth, pass the Secret Key as the token:
curl https://api.growthbook.io/api/v1/features -H "Authorization: Bearer secret_abc123DEF456"
Body
Name of the experiment
2Show child attributes
Show child attributes
ID for the DataSource. Can only be set if a templateId is not provided.
The ID property of one of the assignment query objects associated with the datasource. Can only be set if a templateId is not provided.
If true, allow creating an experiment even if another experiment with the same tracking key already exists. This is ignored if the organization requires unique tracking keys as a rule.
standard, multi-armed-bandit Project ID which the experiment belongs to
ID of the ExperimentTemplate this experiment was created from. Template fields are applied by default and overridden by explicitly provided payload fields.
Hypothesis of the experiment
Description of the experiment
10000Users must convert on this metric before being included
Only users in this segment will be included
WHERE clause to add to the default experiment query
The userId or email address of the owner. If an email address is provided, it will be used to look up the userId of the matching organization member. If an ID is provided, it will be validated as existing in the organization. When omitted, it defaults to the user associated with the request's Personal Access Token (PAT), if one is being used.
draft, running, stopped loose, strict Setting attribution model to "experimentDuration" is the same as selecting "Ignore Conversion Windows" for the Conversion Window Override. Setting it to "lookbackOverride" requires a lookbackOverride object to be provided.
firstExposure, experimentDuration, lookbackOverride Controls the lookback override for the experiment. For type "window", value must be a non-negative number and valueUnit is required.
Show child attributes
Show child attributes
bayesian, frequentist Show child attributes
Show child attributes
Controls whether regression adjustment (CUPED) is enabled for experiment analyses
Only applicable to frequentist analyses
public, organization days, hours days, hours days, hours When null, the organization default is used.
Controls the decision framework and metric overrides for the experiment. Replaces the entire stored object on update (does not patch individual fields).
Show child attributes
Show child attributes
Per-metric analysis overrides for this experiment. Replaces the entire stored array (does not patch individual entries).
Show child attributes
Show child attributes
ID of the default dashboard for this experiment.
Show child attributes
Show child attributes
Custom slices that apply to ALL applicable metrics in the experiment
Show child attributes
Show child attributes
3Schedule a future start for a draft experiment. Only startAt is currently supported.
Show child attributes
Show child attributes
Response
Resource created
Show child attributes
Show child attributes
Was this page helpful?
curl -X POST 'https://api.growthbook.io/api/v1/experiments' \
-H 'Authorization: Bearer YOUR_API_KEY'import requests
url = "https://api.growthbook.io/api/v1/experiments"
payload = {
"trackingKey": "<string>",
"name": "<string>",
"variations": [
{
"key": "<string>",
"name": "<string>",
"id": "<string>",
"description": "<string>",
"screenshots": [
{
"path": "<string>",
"width": 123,
"height": 123,
"description": "<string>"
}
]
}
],
"datasourceId": "<string>",
"assignmentQueryId": "<string>",
"bypassDuplicateKeyCheck": True,
"project": "<string>",
"templateId": "<string>",
"hypothesis": "<string>",
"description": "<string>",
"tags": ["<string>"],
"metrics": ["<string>"],
"secondaryMetrics": ["<string>"],
"guardrailMetrics": ["<string>"],
"activationMetric": "<string>",
"segmentId": "<string>",
"queryFilter": "<string>",
"owner": "<string>",
"archived": True,
"autoRefresh": True,
"hashAttribute": "<string>",
"fallbackAttribute": "<string>",
"hashVersion": 1,
"disableStickyBucketing": True,
"bucketVersion": 123,
"minBucketVersion": 123,
"releasedVariationId": "<string>",
"excludeFromPayload": True,
"phases": [
{
"name": "<string>",
"dateStarted": "2023-11-07T05:31:56Z",
"dateEnded": "2023-11-07T05:31:56Z",
"reasonForStopping": "<string>",
"seed": "<string>",
"coverage": 123,
"prerequisites": [
{
"id": "<string>",
"condition": "<string>"
}
],
"reason": "<string>",
"condition": "<string>",
"savedGroupTargeting": [{ "savedGroups": ["<string>"] }],
"variationWeights": [123]
}
],
"regressionAdjustmentEnabled": True,
"sequentialTestingEnabled": True,
"sequentialTestingTuningParameter": 123,
"banditScheduleValue": 123,
"banditBurnInValue": 123,
"banditConversionWindowValue": 123,
"postStratificationEnabled": True,
"decisionFrameworkSettings": {
"decisionCriteriaId": "<string>",
"decisionFrameworkMetricOverrides": [
{
"id": "<string>",
"targetMDE": 123
}
]
},
"metricOverrides": [
{
"id": "<string>",
"windowHours": 123,
"delayHours": 123,
"properPriorOverride": True,
"properPriorEnabled": True,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": True,
"regressionAdjustmentEnabled": True,
"regressionAdjustmentDays": 123
}
],
"defaultDashboardId": "<string>",
"customFields": {},
"customMetricSlices": [{ "slices": [
{
"column": "<string>",
"levels": ["<string>"]
}
] }],
"precomputedUnitDimensionIds": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
trackingKey: '<string>',
name: '<string>',
variations: [
{
key: '<string>',
name: '<string>',
id: '<string>',
description: '<string>',
screenshots: [{path: '<string>', width: 123, height: 123, description: '<string>'}]
}
],
datasourceId: '<string>',
assignmentQueryId: '<string>',
bypassDuplicateKeyCheck: true,
project: '<string>',
templateId: '<string>',
hypothesis: '<string>',
description: '<string>',
tags: ['<string>'],
metrics: ['<string>'],
secondaryMetrics: ['<string>'],
guardrailMetrics: ['<string>'],
activationMetric: '<string>',
segmentId: '<string>',
queryFilter: '<string>',
owner: '<string>',
archived: true,
autoRefresh: true,
hashAttribute: '<string>',
fallbackAttribute: '<string>',
hashVersion: 1,
disableStickyBucketing: true,
bucketVersion: 123,
minBucketVersion: 123,
releasedVariationId: '<string>',
excludeFromPayload: true,
phases: [
{
name: '<string>',
dateStarted: '2023-11-07T05:31:56Z',
dateEnded: '2023-11-07T05:31:56Z',
reasonForStopping: '<string>',
seed: '<string>',
coverage: 123,
prerequisites: [{id: '<string>', condition: '<string>'}],
reason: '<string>',
condition: '<string>',
savedGroupTargeting: [{savedGroups: ['<string>']}],
variationWeights: [123]
}
],
regressionAdjustmentEnabled: true,
sequentialTestingEnabled: true,
sequentialTestingTuningParameter: 123,
banditScheduleValue: 123,
banditBurnInValue: 123,
banditConversionWindowValue: 123,
postStratificationEnabled: true,
decisionFrameworkSettings: {
decisionCriteriaId: '<string>',
decisionFrameworkMetricOverrides: [{id: '<string>', targetMDE: 123}]
},
metricOverrides: [
{
id: '<string>',
windowHours: 123,
delayHours: 123,
properPriorOverride: true,
properPriorEnabled: true,
properPriorMean: 123,
properPriorStdDev: 123,
regressionAdjustmentOverride: true,
regressionAdjustmentEnabled: true,
regressionAdjustmentDays: 123
}
],
defaultDashboardId: '<string>',
customFields: {},
customMetricSlices: [{slices: [{column: '<string>', levels: ['<string>']}]}],
precomputedUnitDimensionIds: ['<string>']
})
};
fetch('https://api.growthbook.io/api/v1/experiments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.growthbook.io/api/v1/experiments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'trackingKey' => '<string>',
'name' => '<string>',
'variations' => [
[
'key' => '<string>',
'name' => '<string>',
'id' => '<string>',
'description' => '<string>',
'screenshots' => [
[
'path' => '<string>',
'width' => 123,
'height' => 123,
'description' => '<string>'
]
]
]
],
'datasourceId' => '<string>',
'assignmentQueryId' => '<string>',
'bypassDuplicateKeyCheck' => true,
'project' => '<string>',
'templateId' => '<string>',
'hypothesis' => '<string>',
'description' => '<string>',
'tags' => [
'<string>'
],
'metrics' => [
'<string>'
],
'secondaryMetrics' => [
'<string>'
],
'guardrailMetrics' => [
'<string>'
],
'activationMetric' => '<string>',
'segmentId' => '<string>',
'queryFilter' => '<string>',
'owner' => '<string>',
'archived' => true,
'autoRefresh' => true,
'hashAttribute' => '<string>',
'fallbackAttribute' => '<string>',
'hashVersion' => 1,
'disableStickyBucketing' => true,
'bucketVersion' => 123,
'minBucketVersion' => 123,
'releasedVariationId' => '<string>',
'excludeFromPayload' => true,
'phases' => [
[
'name' => '<string>',
'dateStarted' => '2023-11-07T05:31:56Z',
'dateEnded' => '2023-11-07T05:31:56Z',
'reasonForStopping' => '<string>',
'seed' => '<string>',
'coverage' => 123,
'prerequisites' => [
[
'id' => '<string>',
'condition' => '<string>'
]
],
'reason' => '<string>',
'condition' => '<string>',
'savedGroupTargeting' => [
[
'savedGroups' => [
'<string>'
]
]
],
'variationWeights' => [
123
]
]
],
'regressionAdjustmentEnabled' => true,
'sequentialTestingEnabled' => true,
'sequentialTestingTuningParameter' => 123,
'banditScheduleValue' => 123,
'banditBurnInValue' => 123,
'banditConversionWindowValue' => 123,
'postStratificationEnabled' => true,
'decisionFrameworkSettings' => [
'decisionCriteriaId' => '<string>',
'decisionFrameworkMetricOverrides' => [
[
'id' => '<string>',
'targetMDE' => 123
]
]
],
'metricOverrides' => [
[
'id' => '<string>',
'windowHours' => 123,
'delayHours' => 123,
'properPriorOverride' => true,
'properPriorEnabled' => true,
'properPriorMean' => 123,
'properPriorStdDev' => 123,
'regressionAdjustmentOverride' => true,
'regressionAdjustmentEnabled' => true,
'regressionAdjustmentDays' => 123
]
],
'defaultDashboardId' => '<string>',
'customFields' => [
],
'customMetricSlices' => [
[
'slices' => [
[
'column' => '<string>',
'levels' => [
'<string>'
]
]
]
]
],
'precomputedUnitDimensionIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.growthbook.io/api/v1/experiments"
payload := strings.NewReader("{\n \"trackingKey\": \"<string>\",\n \"name\": \"<string>\",\n \"variations\": [\n {\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"screenshots\": [\n {\n \"path\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"description\": \"<string>\"\n }\n ]\n }\n ],\n \"datasourceId\": \"<string>\",\n \"assignmentQueryId\": \"<string>\",\n \"bypassDuplicateKeyCheck\": true,\n \"project\": \"<string>\",\n \"templateId\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"description\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"metrics\": [\n \"<string>\"\n ],\n \"secondaryMetrics\": [\n \"<string>\"\n ],\n \"guardrailMetrics\": [\n \"<string>\"\n ],\n \"activationMetric\": \"<string>\",\n \"segmentId\": \"<string>\",\n \"queryFilter\": \"<string>\",\n \"owner\": \"<string>\",\n \"archived\": true,\n \"autoRefresh\": true,\n \"hashAttribute\": \"<string>\",\n \"fallbackAttribute\": \"<string>\",\n \"hashVersion\": 1,\n \"disableStickyBucketing\": true,\n \"bucketVersion\": 123,\n \"minBucketVersion\": 123,\n \"releasedVariationId\": \"<string>\",\n \"excludeFromPayload\": true,\n \"phases\": [\n {\n \"name\": \"<string>\",\n \"dateStarted\": \"2023-11-07T05:31:56Z\",\n \"dateEnded\": \"2023-11-07T05:31:56Z\",\n \"reasonForStopping\": \"<string>\",\n \"seed\": \"<string>\",\n \"coverage\": 123,\n \"prerequisites\": [\n {\n \"id\": \"<string>\",\n \"condition\": \"<string>\"\n }\n ],\n \"reason\": \"<string>\",\n \"condition\": \"<string>\",\n \"savedGroupTargeting\": [\n {\n \"savedGroups\": [\n \"<string>\"\n ]\n }\n ],\n \"variationWeights\": [\n 123\n ]\n }\n ],\n \"regressionAdjustmentEnabled\": true,\n \"sequentialTestingEnabled\": true,\n \"sequentialTestingTuningParameter\": 123,\n \"banditScheduleValue\": 123,\n \"banditBurnInValue\": 123,\n \"banditConversionWindowValue\": 123,\n \"postStratificationEnabled\": true,\n \"decisionFrameworkSettings\": {\n \"decisionCriteriaId\": \"<string>\",\n \"decisionFrameworkMetricOverrides\": [\n {\n \"id\": \"<string>\",\n \"targetMDE\": 123\n }\n ]\n },\n \"metricOverrides\": [\n {\n \"id\": \"<string>\",\n \"windowHours\": 123,\n \"delayHours\": 123,\n \"properPriorOverride\": true,\n \"properPriorEnabled\": true,\n \"properPriorMean\": 123,\n \"properPriorStdDev\": 123,\n \"regressionAdjustmentOverride\": true,\n \"regressionAdjustmentEnabled\": true,\n \"regressionAdjustmentDays\": 123\n }\n ],\n \"defaultDashboardId\": \"<string>\",\n \"customFields\": {},\n \"customMetricSlices\": [\n {\n \"slices\": [\n {\n \"column\": \"<string>\",\n \"levels\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"precomputedUnitDimensionIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.growthbook.io/api/v1/experiments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"trackingKey\": \"<string>\",\n \"name\": \"<string>\",\n \"variations\": [\n {\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"screenshots\": [\n {\n \"path\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"description\": \"<string>\"\n }\n ]\n }\n ],\n \"datasourceId\": \"<string>\",\n \"assignmentQueryId\": \"<string>\",\n \"bypassDuplicateKeyCheck\": true,\n \"project\": \"<string>\",\n \"templateId\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"description\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"metrics\": [\n \"<string>\"\n ],\n \"secondaryMetrics\": [\n \"<string>\"\n ],\n \"guardrailMetrics\": [\n \"<string>\"\n ],\n \"activationMetric\": \"<string>\",\n \"segmentId\": \"<string>\",\n \"queryFilter\": \"<string>\",\n \"owner\": \"<string>\",\n \"archived\": true,\n \"autoRefresh\": true,\n \"hashAttribute\": \"<string>\",\n \"fallbackAttribute\": \"<string>\",\n \"hashVersion\": 1,\n \"disableStickyBucketing\": true,\n \"bucketVersion\": 123,\n \"minBucketVersion\": 123,\n \"releasedVariationId\": \"<string>\",\n \"excludeFromPayload\": true,\n \"phases\": [\n {\n \"name\": \"<string>\",\n \"dateStarted\": \"2023-11-07T05:31:56Z\",\n \"dateEnded\": \"2023-11-07T05:31:56Z\",\n \"reasonForStopping\": \"<string>\",\n \"seed\": \"<string>\",\n \"coverage\": 123,\n \"prerequisites\": [\n {\n \"id\": \"<string>\",\n \"condition\": \"<string>\"\n }\n ],\n \"reason\": \"<string>\",\n \"condition\": \"<string>\",\n \"savedGroupTargeting\": [\n {\n \"savedGroups\": [\n \"<string>\"\n ]\n }\n ],\n \"variationWeights\": [\n 123\n ]\n }\n ],\n \"regressionAdjustmentEnabled\": true,\n \"sequentialTestingEnabled\": true,\n \"sequentialTestingTuningParameter\": 123,\n \"banditScheduleValue\": 123,\n \"banditBurnInValue\": 123,\n \"banditConversionWindowValue\": 123,\n \"postStratificationEnabled\": true,\n \"decisionFrameworkSettings\": {\n \"decisionCriteriaId\": \"<string>\",\n \"decisionFrameworkMetricOverrides\": [\n {\n \"id\": \"<string>\",\n \"targetMDE\": 123\n }\n ]\n },\n \"metricOverrides\": [\n {\n \"id\": \"<string>\",\n \"windowHours\": 123,\n \"delayHours\": 123,\n \"properPriorOverride\": true,\n \"properPriorEnabled\": true,\n \"properPriorMean\": 123,\n \"properPriorStdDev\": 123,\n \"regressionAdjustmentOverride\": true,\n \"regressionAdjustmentEnabled\": true,\n \"regressionAdjustmentDays\": 123\n }\n ],\n \"defaultDashboardId\": \"<string>\",\n \"customFields\": {},\n \"customMetricSlices\": [\n {\n \"slices\": [\n {\n \"column\": \"<string>\",\n \"levels\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"precomputedUnitDimensionIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.growthbook.io/api/v1/experiments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"trackingKey\": \"<string>\",\n \"name\": \"<string>\",\n \"variations\": [\n {\n \"key\": \"<string>\",\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"screenshots\": [\n {\n \"path\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"description\": \"<string>\"\n }\n ]\n }\n ],\n \"datasourceId\": \"<string>\",\n \"assignmentQueryId\": \"<string>\",\n \"bypassDuplicateKeyCheck\": true,\n \"project\": \"<string>\",\n \"templateId\": \"<string>\",\n \"hypothesis\": \"<string>\",\n \"description\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"metrics\": [\n \"<string>\"\n ],\n \"secondaryMetrics\": [\n \"<string>\"\n ],\n \"guardrailMetrics\": [\n \"<string>\"\n ],\n \"activationMetric\": \"<string>\",\n \"segmentId\": \"<string>\",\n \"queryFilter\": \"<string>\",\n \"owner\": \"<string>\",\n \"archived\": true,\n \"autoRefresh\": true,\n \"hashAttribute\": \"<string>\",\n \"fallbackAttribute\": \"<string>\",\n \"hashVersion\": 1,\n \"disableStickyBucketing\": true,\n \"bucketVersion\": 123,\n \"minBucketVersion\": 123,\n \"releasedVariationId\": \"<string>\",\n \"excludeFromPayload\": true,\n \"phases\": [\n {\n \"name\": \"<string>\",\n \"dateStarted\": \"2023-11-07T05:31:56Z\",\n \"dateEnded\": \"2023-11-07T05:31:56Z\",\n \"reasonForStopping\": \"<string>\",\n \"seed\": \"<string>\",\n \"coverage\": 123,\n \"prerequisites\": [\n {\n \"id\": \"<string>\",\n \"condition\": \"<string>\"\n }\n ],\n \"reason\": \"<string>\",\n \"condition\": \"<string>\",\n \"savedGroupTargeting\": [\n {\n \"savedGroups\": [\n \"<string>\"\n ]\n }\n ],\n \"variationWeights\": [\n 123\n ]\n }\n ],\n \"regressionAdjustmentEnabled\": true,\n \"sequentialTestingEnabled\": true,\n \"sequentialTestingTuningParameter\": 123,\n \"banditScheduleValue\": 123,\n \"banditBurnInValue\": 123,\n \"banditConversionWindowValue\": 123,\n \"postStratificationEnabled\": true,\n \"decisionFrameworkSettings\": {\n \"decisionCriteriaId\": \"<string>\",\n \"decisionFrameworkMetricOverrides\": [\n {\n \"id\": \"<string>\",\n \"targetMDE\": 123\n }\n ]\n },\n \"metricOverrides\": [\n {\n \"id\": \"<string>\",\n \"windowHours\": 123,\n \"delayHours\": 123,\n \"properPriorOverride\": true,\n \"properPriorEnabled\": true,\n \"properPriorMean\": 123,\n \"properPriorStdDev\": 123,\n \"regressionAdjustmentOverride\": true,\n \"regressionAdjustmentEnabled\": true,\n \"regressionAdjustmentDays\": 123\n }\n ],\n \"defaultDashboardId\": \"<string>\",\n \"customFields\": {},\n \"customMetricSlices\": [\n {\n \"slices\": [\n {\n \"column\": \"<string>\",\n \"levels\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"precomputedUnitDimensionIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"experiment": {
"id": "<string>",
"trackingKey": "<string>",
"dateCreated": "2023-11-07T05:31:56Z",
"dateUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"project": "<string>",
"hypothesis": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"owner": "<string>",
"archived": true,
"status": "<string>",
"autoRefresh": true,
"hashAttribute": "<string>",
"hashVersion": 1,
"variations": [
{
"variationId": "<string>",
"key": "<string>",
"name": "<string>",
"description": "<string>",
"screenshots": [
"<string>"
]
}
],
"phases": [
{
"name": "<string>",
"dateStarted": "<string>",
"dateEnded": "<string>",
"reasonForStopping": "<string>",
"seed": "<string>",
"coverage": 123,
"trafficSplit": [
{
"variationId": "<string>",
"weight": 123
}
],
"targetingCondition": "<string>",
"namespace": {
"namespaceId": "<string>",
"enabled": true,
"range": [
123
],
"ranges": [
[
123,
123
]
]
},
"prerequisites": [
{
"id": "<string>",
"condition": "<string>"
}
],
"savedGroupTargeting": [
{
"savedGroups": [
"<string>"
]
}
]
}
],
"settings": {
"datasourceId": "<string>",
"assignmentQueryId": "<string>",
"experimentId": "<string>",
"segmentId": "<string>",
"queryFilter": "<string>",
"goals": [
{
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
],
"secondaryMetrics": [
{
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
],
"guardrails": [
{
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
],
"lookbackOverride": {
"value": 123
},
"regressionAdjustmentEnabled": true,
"sequentialTestingEnabled": true,
"sequentialTestingTuningParameter": 123,
"postStratificationEnabled": true,
"decisionFrameworkSettings": {
"decisionCriteriaId": "<string>",
"decisionFrameworkMetricOverrides": [
{
"id": "<string>",
"targetMDE": 123
}
]
},
"metricOverrides": [
{
"id": "<string>",
"windowHours": 123,
"delayHours": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
],
"activationMetric": {
"metricId": "<string>",
"overrides": {
"delayHours": 123,
"windowHours": 123,
"winRiskThreshold": 123,
"loseRiskThreshold": 123,
"properPriorOverride": true,
"properPriorEnabled": true,
"properPriorMean": 123,
"properPriorStdDev": 123,
"regressionAdjustmentOverride": true,
"regressionAdjustmentEnabled": true,
"regressionAdjustmentDays": 123
}
}
},
"ownerEmail": "<string>",
"fallbackAttribute": "<string>",
"disableStickyBucketing": true,
"bucketVersion": 123,
"minBucketVersion": 123,
"resultSummary": {
"status": "<string>",
"winner": "<string>",
"conclusions": "<string>",
"releasedVariationId": "<string>",
"excludeFromPayload": true
},
"publicUrl": "<string>",
"banditScheduleValue": 123,
"banditBurnInValue": 123,
"banditConversionWindowValue": 123,
"linkedFeatures": [
"<string>"
],
"hasVisualChangesets": true,
"hasURLRedirects": true,
"customFields": {},
"customMetricSlices": [
{
"slices": [
{
"column": "<string>",
"levels": [
"<string>"
]
}
]
}
],
"precomputedUnitDimensionIds": [
"<string>"
],
"defaultDashboardId": "<string>",
"templateId": "<string>",
"statusUpdateSchedule": {
"startAt": "2023-11-07T05:31:56Z"
},
"nextScheduledStatusUpdate": {
"type": "start",
"date": "2023-11-07T05:31:56Z"
}
}
}
