Delete a Single Layer Override

Removes a single gate or segment override from the layer. Idempotent: returns 200 even when no matching override exists.

Removes a single gate or segment override from the layer. Idempotent: returns 200 even when no matching override exists.

deletehttps://statsigapi.net/console/v1/layers/{id}/overrides/conditional/{type}/{name}

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

Layer name

typestringrequired

Override type

Allowed values:gatesegment
namestringrequired

Name of the gate or segment being overridden

Query parameters

groupNamestringrequired

Experiment group the override targets

experimentNamestringrequired

Experiment within the layer that owns the override

environmentstring

Environment the override is scoped to. Omit to target the override that applies to all environments.

Response

application/json
200· Delete Single Layer Override Success
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
conditionalOverridesobject[]required
typestringrequired

Describes whether layer override is segment or gate

namestringrequired

Name of override entity

experimentNamestringrequired
groupNamestringrequired
environmentstring

Optional environment scope (e.g. production, staging). Omit or pass null to target the all-environments bucket.

Constraints:nullable
idOverridesobject[]required
groupNamestringrequired

Group that ID is overriden into

idsstring[]required

ID being overriden into a particular group

idTypestring
Constraints:nullable
environmentstring
Constraints:nullable
experimentNamestring
Constraints:nullable
401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
Allowed values:401
messagestringrequired
404· Layer not found.
statusintegerrequired
Allowed values:404
messagestringrequired

Was this helpful?