cURL
curl --request POST \ --url https://statsigapi.net/console/v1/holdouts \ --header 'Content-Type: application/json' \ --header 'STATSIG-API-KEY: <api-key>' \ --data '{ "name": "team holdout", "description": "holdout for this team", "idType": "userID", "teamID": "4pjeXYDjC2WinSgOiII7wh" }'
{ "message": "Holdout created successfully.", "data": { "id": "a_holdout", "name": "a holdout", "description": "helpful summary of what this holdout does", "idType": "userID", "lastModifierID": "1vaQaBoLlkauH9iiuOSBP2", "lastModifiedTime": 1707768016211, "lastModifierName": "CONSOLE API", "lastModifierEmail": null, "creatorID": "1vaQaBoLlkauH9iiuOSBP2", "createdTime": 1707768015729, "creatorName": "CONSOLE API", "creatorEmail": null, "targetApps": [], "tags": [], "team": "Console Team", "isEnabled": true, "isGlobal": false, "passPercentage": 0, "gateIDs": [], "experimentIDs": [], "layerIDs": [], "targetingGateID": null } }
Optional header to respect review settings for mutation endpoints.
name of the holdout
3 - 100
"team holdout"
description of the holdout
1000
"holdout for this team"
type of id
"userID"
id of the team
"4pjeXYDjC2WinSgOiII7wh"
Create holdout response
A simple string explaining the result of the operation.
A single result.
Show child attributes
Was this page helpful?