cURL
curl --request POST \ --url https://statsigapi.net/console/v1/holdouts/{id} \ --header 'Content-Type: application/json' \ --header 'STATSIG-API-KEY: <api-key>' \ --data '{ "isEnabled": true, "description": "example holdout description", "passPercentage": 5, "gateIDs": [ "4pjeXYDjC2WinSgOiII7wh" ], "experimentIDs": [ "70fCNphHGesdLwHdHau99q" ], "layerIDs": [ "5O908pyGoCqw6QH1nt8v82" ], "isGlobal": false, "targetingGateID": "4pjeXYDjC2WinSgOiII7wh", "monitoringMetrics": [ { "name": "<string>", "type": "<string>" } ] }'
{ "message": "Holdout updated successfully.", "data": { "id": "testing_holdout", "name": "testing holdout", "description": "UPDATED summary of what this holdout does", "idType": "userID", "lastModifierID": "4dcQUIpS8PHObBGD7HJwOx", "lastModifiedTime": 1719941188286, "lastModifierName": "CONSOLE API", "lastModifierEmail": null, "creatorID": "4dcQUIpS8PHObBGD7HJwOx", "createdTime": 1719873870785, "creatorName": "CONSOLE API", "creatorEmail": null, "targetApps": [], "tags": [], "team": "Console Team", "isEnabled": true, "isGlobal": true, "passPercentage": 5, "gateIDs": [], "experimentIDs": [ "testing123" ], "layerIDs": [], "targetingGateID": "" } }
1000
0 <= x <= 10
Show child attributes
Was this page helpful?