Skip to main content
POST
/
console
/
v1
/
autotunes
/
{id}
Fully Update Autotune
curl --request POST \
  --url https://statsigapi.net/console/v1/autotunes/{id} \
  --header 'Content-Type: application/json' \
  --header 'STATSIG-API-KEY: <api-key>' \
  --data '{
  "id": "my_autotunes_are_best",
  "isStarted": false,
  "description": "helpful summary of what this Autotune is",
  "lastModifierID": "ahKwUoaNauHu9AmJPc2",
  "lastModifierName": "CONSOLE API",
  "variants": [
    {
      "name": "red",
      "json": {
        "foo": "boo"
      },
      "size": 50
    },
    {
      "name": "blue",
      "json": {},
      "size": 50
    }
  ],
  "successEvent": "purchase_item",
  "successEventValue": "",
  "explorationWindow": "1hr",
  "attributionWindow": "2hrs",
  "winnerThreshold": "99%",
  "idType": "userID"
}'
{
  "message": "Autotune Experiment read successfully.",
  "data": {
    "id": "my_autotunes_are_best",
    "isStarted": false,
    "description": "helpful summary of what this Autotune is",
    "lastModifierID": "jd93DGSnvkauH9FijdGiajh",
    "lastModifierName": "CONSOLE API",
    "variants": [
      {
        "name": "red",
        "json": {
          "color": "red"
        }
      },
      {
        "name": "blue",
        "json": {
          "color": "blue"
        }
      }
    ],
    "successEvent": "purchase_item",
    "successEventValue": "",
    "explorationWindow": "1hr",
    "attributionWindow": "2hrs",
    "winnerThreshold": "99%"
  }
}

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Path Parameters

id
string
required

Body

application/json
variants
object[]
required
Minimum length: 2
successEvent
string
required
explorationWindow
enum<string>
required
Available options:
1hr,
24hr,
48hr,
168hr,
336hr,
1,
24,
48,
168,
336,
1hrs,
24hrs,
48hrs,
168hrs,
336hrs
attributionWindow
enum<string>
required
Available options:
1hr,
2hr,
4hr,
24hr,
1hrs,
2hrs,
4hrs,
24hrs,
1,
2,
4,
24
winnerThreshold
enum<string>
required
Available options:
80%,
90%,
95%,
98%,
99%
description
string
successEventValue
string
attributionWindowUnit
enum<string>
Available options:
min,
hour,
day
explorationWindowRate
number
Required range: 0.001 <= x <= 1
longtermExplorationAllocation
number
Required range: 0.001 <= x <= 1
metadataField
string
higherIsBetter
boolean
isContextual
boolean
metricSourceID
string
linkedExperimentName
string
goalRichText
string
optimizationParameter
enum<string>
Available options:
occurrence,
value
valueColumn
string
featureList
string[]

Response

message
string
required
data
object
required