Skip to main content
PATCH
/
console
/
v1
/
autotunes
/
{id}
Partially Update Autotune
curl --request PATCH \
  --url https://statsigapi.net/console/v1/autotunes/{id} \
  --header 'Content-Type: application/json' \
  --header 'STATSIG-API-KEY: <api-key>' \
  --data '{
  "description": "<string>",
  "variants": [
    {
      "name": "<string>",
      "json": "<any>",
      "size": 123
    }
  ],
  "successEvent": "<string>",
  "successEventValue": "<string>",
  "explorationWindow": "1hr",
  "attributionWindow": "1hr",
  "attributionWindowUnit": "min",
  "explorationWindowRate": 0.5005,
  "longtermExplorationAllocation": 0.5005,
  "winnerThreshold": "80%",
  "metadataField": "<string>",
  "higherIsBetter": true,
  "isContextual": true,
  "metricSourceID": "<string>",
  "linkedExperimentName": "<string>",
  "goalRichText": "<string>",
  "optimizationParameter": "occurrence",
  "valueColumn": "<string>",
  "featureList": [
    "<string>"
  ]
}'
{
  "message": "Autotune Experiment updated successfully.",
  "data": {
    "id": "a_autotune",
    "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
description
string
variants
object[]
Minimum length: 2
successEvent
string
successEventValue
string
explorationWindow
enum<string>
Available options:
1hr,
24hr,
48hr,
168hr,
336hr,
1,
24,
48,
168,
336,
1hrs,
24hrs,
48hrs,
168hrs,
336hrs
attributionWindow
enum<string>
Available options:
1hr,
2hr,
4hr,
24hr,
1hrs,
2hrs,
4hrs,
24hrs,
1,
2,
4,
24
attributionWindowUnit
enum<string>
Available options:
min,
hour,
day
explorationWindowRate
number
Required range: 0.001 <= x <= 1
longtermExplorationAllocation
number
Required range: 0.001 <= x <= 1
winnerThreshold
enum<string>
Available options:
80%,
90%,
95%,
98%,
99%
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