curl --request POST \
--url https://statsigapi.net/console/v1/autotunes \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"description": "<string>",
"variants": [
{
"name": "<string>",
"json": "<any>"
}
],
"successEvent": "<string>",
"successEventValue": "<string>",
"explorationWindow": "1hr",
"attributionWindow": "1hr",
"winnerThreshold": "80%",
"metadataField": "<string>",
"higherIsBetter": true,
"name": "<string>",
"idType": "<string>",
"isContextual": true
}'
{
"message": "Autotune Experiments created successfully.",
"data": {
"id": "button_color_test",
"isStarted": false,
"description": "Which color button gets the most clicks.",
"lastModifierID": "ajv762klv9nx9hca",
"lastModifierName": "CONSOLE API",
"variants": [
{
"name": "red",
"json": {
"color": "red"
}
},
{
"name": "blue",
"json": {
"color": "blue"
}
}
],
"successEvent": "click",
"successEventValue": "",
"explorationWindow": "1hr",
"attributionWindow": "2hrs",
"winnerThreshold": "99%"
}
}
curl --request POST \
--url https://statsigapi.net/console/v1/autotunes \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"description": "<string>",
"variants": [
{
"name": "<string>",
"json": "<any>"
}
],
"successEvent": "<string>",
"successEventValue": "<string>",
"explorationWindow": "1hr",
"attributionWindow": "1hr",
"winnerThreshold": "80%",
"metadataField": "<string>",
"higherIsBetter": true,
"name": "<string>",
"idType": "<string>",
"isContextual": true
}'
{
"message": "Autotune Experiments created successfully.",
"data": {
"id": "button_color_test",
"isStarted": false,
"description": "Which color button gets the most clicks.",
"lastModifierID": "ajv762klv9nx9hca",
"lastModifierName": "CONSOLE API",
"variants": [
{
"name": "red",
"json": {
"color": "red"
}
},
{
"name": "blue",
"json": {
"color": "blue"
}
}
],
"successEvent": "click",
"successEventValue": "",
"explorationWindow": "1hr",
"attributionWindow": "2hrs",
"winnerThreshold": "99%"
}
}
Optional header to respect review settings for mutation endpoints.
Create Autotune Success
The response is of type object
.