curl --request POST \
--url https://statsigapi.net/console/v1/experiments/{id}/overrides \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"overrides": [
{
"type": "gate",
"id": "<string>",
"groupID": "<string>"
}
],
"userIDOverrides": [
{
"groupID": "<string>",
"ids": [
"<string>"
],
"environment": "<string>",
"unitType": "<string>"
}
]
}'
{
"overrides": [
{
"type": "segment",
"id": "a_segment",
"groupID": "Control"
},
{
"type": "gate",
"id": "a_gate",
"groupID": "Test"
}
],
"userIDOverrides": [
{
"groupID": "Control",
"ids": [
"updated_control_id_list"
]
},
{
"groupID": "Test",
"ids": [
"updated_test_id_list"
]
}
]
}
Optional header to respect review settings for mutation endpoints.
id
Update Experiment Overrides Success
The response is of type object
.
curl --request POST \
--url https://statsigapi.net/console/v1/experiments/{id}/overrides \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"overrides": [
{
"type": "gate",
"id": "<string>",
"groupID": "<string>"
}
],
"userIDOverrides": [
{
"groupID": "<string>",
"ids": [
"<string>"
],
"environment": "<string>",
"unitType": "<string>"
}
]
}'
{
"overrides": [
{
"type": "segment",
"id": "a_segment",
"groupID": "Control"
},
{
"type": "gate",
"id": "a_gate",
"groupID": "Test"
}
],
"userIDOverrides": [
{
"groupID": "Control",
"ids": [
"updated_control_id_list"
]
},
{
"groupID": "Test",
"ids": [
"updated_test_id_list"
]
}
]
}