v2
latestOpenAPI 3.0.02026-08-073221853.1 MBHoldouts
Partially update holdout by id
You can pass in only the data you want to update.
patch/console/v1/holdouts/{id}
Path parameters
idstring required
id
Request body
Example request
{
"isEnabled": true,
"description": "example holdout description",
"passPercentage": 5,
"gateIDs": [
"my_gate"
],
"experimentIDs": [
"my_experiment"
],
"layerIDs": [
"my_layer"
],
"targetingGateID": "my_targeting_gate"
}Response
Update holdout response
Example response
{
"message": "Holdout updated successfully.",
"data": {
"id": "testing_holdout",
"name": "testing holdout",
"description": "helpful summary of what the holdout does",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1719939380702,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4dcQUIpS8PHObBGD7HJwOx",
"createdTime": 1719873870785,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [],
"tags": [],
"team": "Console Team",
"isEnabled": false,
"isGlobal": false,
"passPercentage": 0,
"gateIDs": [],
"experimentIDs": [],
"layerIDs": [],
"targetingGateID": null,
"permalink": "https://console.statsig.com/company_id/holdouts/testing_holdout"
}
}