Delete a Single Layer Override
Removes a single gate or segment override from the layer. Idempotent: returns 200 even when no matching override exists.
delete
https://statsigapi.net/console/v1/layers/{id}/overrides/conditional/{type}/{name}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredLayer name
typestringrequiredOverride type
namestringrequiredName of the gate or segment being overridden
Query parameters
groupNamestringrequiredExperiment group the override targets
experimentNamestringrequiredExperiment within the layer that owns the override
environmentstringEnvironment the override is scoped to. Omit to target the override that applies to all environments.
Response
application/json200Delete Single Layer Override Success
messagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
conditionalOverridesobject[]requiredShow child attributes
type[]stringrequiredDescribes whether layer override is segment or gate
name[]stringrequiredName of override entity
experimentName[]stringrequiredgroupName[]stringrequiredenvironment[]stringOptional environment scope (e.g. production, staging). Omit or pass null to target the all-environments bucket.
idOverridesobject[]requiredShow child attributes
groupName[]stringrequiredGroup that ID is overriden into
ids[]string[]requiredID being overriden into a particular group
idType[]stringenvironment[]stringexperimentName[]string401This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequiredmessagestringrequired404Layer not found.
statusintegerrequiredmessagestringrequiredWas this helpful?