Delete a Single Layer Override

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

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
200Delete Single Layer Override Success
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
conditionalOverridesobject[]required
Show child attributes
type[]stringrequired

Describes whether layer override is segment or gate

name[]stringrequired

Name of override entity

experimentName[]stringrequired
groupName[]stringrequired
environment[]string

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

idOverridesobject[]required
Show child attributes
groupName[]stringrequired

Group that ID is overriden into

ids[]string[]required

ID being overriden into a particular group

idType[]string
environment[]string
experimentName[]string
401This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
messagestringrequired
404Layer not found.
statusintegerrequired
messagestringrequired

Was this helpful?