Experiments
Experiments
Create Experiment
Changed onpost/console/v1/experiments
Request
- Base URLhttps://statsigapi.net
- URLhttps://statsigapi.net/console/v1/experiments
- AuthAPI key in header STATSIG-API-KEY
Request body
Example request
{
"name": "Test Experiment",
"description": "Description test",
"inlineTargetingRules": [
{
"name": "Eligible users",
"passPercentage": 100,
"conditions": [
{
"type": "passes_segment",
"targetValue": "paid_users"
}
]
}
]
}Response
Create Experiment Success
Example response
{
"message": "Experiment created successfully.",
"data": {
"id": "a_experiment",
"permalink": "https://console.statsig.com/company_id/experiments/a_experiment",
"name": "a_experiment",
"description": "description",
"idType": "userID",
"lastModifierID": "1vaQaBoLlkauH9iiuOSBP2",
"lastModifiedTime": 1707427635442,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "1vaQaBoLlkauH9iiuOSBP2",
"createdTime": 1707427634717,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"holdoutIDs": [],
"tags": [],
"status": "setup",
"experimentType": "BASE",
"launchedGroupID": null,
"startTime": null,
"endTime": null,
"layerID": null,
"hypothesis": "This will be a good feature :)",
"primaryMetrics": [
{
"name": "d1_retention_rate",
"type": "user"
}
],
"primaryMetricTags": [],
"secondaryMetrics": [],
"secondaryMetricTags": [],
"groups": [
{
"name": "Control",
"id": "6sEQvUd4c6E55V6ljBYMeJ",
"size": 50,
"parameterValues": {
"assigned_group": "control"
},
"description": "",
"isControl": true
},
{
"name": "Test",
"id": "6sEQvVS6EoNzpkEgUJUpxL",
"size": 50,
"parameterValues": {
"assigned_group": "test"
},
"description": "",
"isControl": false
}
],
"allocation": 100,
"duration": 14,
"targetingGateID": "",
"defaultConfidenceInterval": "95",
"bonferroniCorrection": false,
"decisionReason": null,
"decisionTime": null,
"healthChecks": [],
"healthCheckStatus": "PASSED",
"isStale": false,
"inlineTargetingRulesJSON": "{}",
"powerAnalyses": []
}
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the new optional request property
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info