Skip to content

Remove the override of one unit

DELETE
/projects/{project}/flags/{flag}/environments/{environment}/overrides/{unit_type}/{unit_id}
curl --request DELETE \
--url https://example.com/api/v1/projects/example/flags/example/environments/example/overrides/example/example \
--header 'Authorization: Bearer <token>'

Removes one override without replacing the configuration, and needs no If-Match; the configuration’s version still moves on. A unit without an override is not_found.

project
required
string

The project’s key.

flag
required
string

The flag’s key.

environment
required
string

The environment’s key.

unit_type
required
string

The unit type’s key.

unit_id
required
string

The unit’s ID, of 1 to 256 bytes.

The configuration as it is now.

Media typeapplication/json

What the flag serves in one environment.

object
environment
required

Names the entity in URLs, SDK calls and rules, and never changes.

string
/^[a-z][a-z0-9_-]{0,63}$/
on
required
boolean
off_variation
required

The variation served while the flag is off, and when a prerequisite fails.

string
fallthrough
required

The variation served when the flag is on and no rule matches.

string
prerequisites
required

Flags that must serve the named variation for this flag to be evaluated; otherwise it serves its off variation.

Array<object>
object
flag
required

The key of another flag of the project, not archived.

string
variation
required

One of that flag’s variations.

string
overrides
required
Array<object>

A variation fixed for one unit. Its note and author stay on the server; SDKs receive neither.

object
unit_type
required
string
unit_id
required
string
variation
required
string
note
required

Why the unit has a fixed variation; null for none.

string
nullable
added_by
required

The member who last wrote the override; null when a project token did.

string format: uuid
nullable
rules
required

Checked in order; the first whose conditions all hold serves.

Array<object>
object
id
required

Given by the server to a new rule and kept across writes.

string format: uuid
description
required
string
conditions
required

Every one must hold for the rule to match.

Array<object>

One comparison inside a rule or a segment. An attribute condition names an attribute or unit type, an operator (op) and a value (none for exists, not_exists and is_empty); in_segment and not_in_segment name a segment; prerequisite names a flag and one of its variations. A segment holds attribute conditions only.

object
kind
required

attribute, in_segment, not_in_segment or prerequisite.

string
attribute
string
op
string
value

A string, number, boolean or list, as the operator and the attribute’s type need; null is no value.

nullable
segment
string
flag
string
variation
string
serve
required

What a matching rule serves. variation serves variation; rollout serves variation to percentage of the units of unit_type, in basis points (0 to 10,000), the others continuing to the next rule. A rollout’s salt is given by the server and changes only through regenerating it, so a write omits it or sends it unchanged. experiment serves the experiment experiment of the flag, which assigns units to variations by its own weights; a rule serves a draft or running experiment of its flag (unknown_experiment, experiment_of_another_flag and experiment_not_servable otherwise), and several rules may serve the same one; a rule that served the experiment already keeps serving it whatever its status, so stopping or archiving it never blocks an edit of the other rules. While the experiment is a draft, stopped or archived its rules are left out of the ruleset SDKs receive; while it runs they carry its unit type, salts, traffic allocation and weights.

object
kind
required

variation, rollout or experiment.

string
variation
string
experiment

The key of the experiment served, for kind experiment.

string
unit_type
string
percentage
integer
<= 10000
salt
string
updated_at
required
string format: date-time
updated_by
required

The member whose write made the configuration what it is; null when a project token did.

string format: uuid
nullable
version
required

Counts the entity’s accepted changes, from 1; send it back in If-Match to change the entity.

integer format: int64
>= 1
change_requests

The change requests waiting on the configuration, which any write to it supersedes. Answered by the configuration’s own operations; a flag’s detail and the audit log leave it out.

object
open
required

How many are open, awaiting a decision.

integer
approved
required

How many are approved, awaiting application.

integer
next_apply_at
required

The earliest time one of them is scheduled to be applied at; null when none is scheduled.

string format: date-time
nullable

Example generated

{
"environment": "example",
"on": true,
"off_variation": "example",
"fallthrough": "example",
"prerequisites": [
{
"flag": "example",
"variation": "example"
}
],
"overrides": [
{
"unit_type": "example",
"unit_id": "example",
"variation": "example",
"note": "example",
"added_by": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
],
"rules": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"description": "example",
"conditions": [
{
"kind": "example",
"attribute": "example",
"op": "example",
"value": "example",
"segment": "example",
"flag": "example",
"variation": "example"
}
],
"serve": {
"kind": "example",
"variation": "example",
"experiment": "example",
"unit_type": "example",
"percentage": 1,
"salt": "example"
}
}
],
"updated_at": "2026-04-15T12:00:00Z",
"updated_by": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"version": 1,
"change_requests": {
"open": 1,
"approved": 1,
"next_apply_at": "2026-04-15T12:00:00Z"
}
}
ETag
string

The entity’s version as a strong entity tag, such as "7", to send back in If-Match.

No credential, or one that is not accepted: unauthenticated without a credential (a session cookie the server did not issue counts as none); invalid_token, token_revoked or token_expired for an API token, with a WWW-Authenticate header naming the code; session_expired for a session that has ended, whose cookie is cleared; invalid_credentials for a sign-in.

Media typeapplication/problem+json

A problem document (RFC 9457). Code-specific values are further members.

object
type
required
string
title
required
string
status
required
integer
code
required

Stable snake_case name of the problem, which clients branch on.

string
detail

An English explanation for humans; never what a client branches on.

string
request_id
required
string
retry_after

Seconds to wait before retrying, for a rate limit.

integer
permission

The permission the caller lacks, for forbidden, or the role’s permission the caller lacks, for role_not_allowed.

string
current_version

The version the entity has now, for version_mismatch.

integer format: int64
references

What still names what the write would remove or hide, for in_use.

Array<object>
object
kind
required

What names it, such as flag, segment or experiment.

string
key
required
string
environment
required

The key of the environment it is named in; null when it is named in every environment.

string
nullable
provider

The slug of the auth provider to sign in through instead, for sso_required.

string
used_by

What keeps an auth provider from being deleted, disabled or edited, for provider_in_use, such as identities, enforced domains or only way in (the only enabled provider while local login is disabled).

Array<string>
failure

Why a system the server asked did not answer as needed, for provider_unreachable; for sink_not_ready the failure class of the target’s check, such as connect or status.

string
failure_status

The HTTP status the target answered, for sink_not_ready, when it answered.

integer
failure_code

The target’s own error code, for sink_not_ready, when it speaks one, such as a ClickHouse exception or an S3 error code.

string
errors
Array<object>
object
pointer
required

JSON Pointer into the request body.

string
code
required
string
detail
required
string
params

The values of the rule broken, such as the bounds of a length, for a client to explain the violation in its own language.

object
key
additional properties
any

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"retry_after": 1,
"permission": "example",
"current_version": 1,
"references": [
{
"kind": "example",
"key": "example",
"environment": "example"
}
],
"provider": "example",
"used_by": [
"example"
],
"failure": "example",
"failure_status": 1,
"failure_code": "example",
"errors": [
{
"pointer": "example",
"code": "example",
"detail": "example",
"params": {}
}
]
}
WWW-Authenticate
string

The caller may not perform the operation: forbidden (with the missing permission), session_required, insufficient_scope, cross_origin for a request signed in by the session cookie, a read included, that the browser says comes from another origin, or, for a write, change_request_required when it would change what a protected environment’s SDKs receive; detail names those environments.

Media typeapplication/problem+json

A problem document (RFC 9457). Code-specific values are further members.

object
type
required
string
title
required
string
status
required
integer
code
required

Stable snake_case name of the problem, which clients branch on.

string
detail

An English explanation for humans; never what a client branches on.

string
request_id
required
string
retry_after

Seconds to wait before retrying, for a rate limit.

integer
permission

The permission the caller lacks, for forbidden, or the role’s permission the caller lacks, for role_not_allowed.

string
current_version

The version the entity has now, for version_mismatch.

integer format: int64
references

What still names what the write would remove or hide, for in_use.

Array<object>
object
kind
required

What names it, such as flag, segment or experiment.

string
key
required
string
environment
required

The key of the environment it is named in; null when it is named in every environment.

string
nullable
provider

The slug of the auth provider to sign in through instead, for sso_required.

string
used_by

What keeps an auth provider from being deleted, disabled or edited, for provider_in_use, such as identities, enforced domains or only way in (the only enabled provider while local login is disabled).

Array<string>
failure

Why a system the server asked did not answer as needed, for provider_unreachable; for sink_not_ready the failure class of the target’s check, such as connect or status.

string
failure_status

The HTTP status the target answered, for sink_not_ready, when it answered.

integer
failure_code

The target’s own error code, for sink_not_ready, when it speaks one, such as a ClickHouse exception or an S3 error code.

string
errors
Array<object>
object
pointer
required

JSON Pointer into the request body.

string
code
required
string
detail
required
string
params

The values of the rule broken, such as the bounds of a length, for a client to explain the violation in its own language.

object
key
additional properties
any

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"retry_after": 1,
"permission": "example",
"current_version": 1,
"references": [
{
"kind": "example",
"key": "example",
"environment": "example"
}
],
"provider": "example",
"used_by": [
"example"
],
"failure": "example",
"failure_status": 1,
"failure_code": "example",
"errors": [
{
"pointer": "example",
"code": "example",
"detail": "example",
"params": {}
}
]
}

not_found: no such project, or nothing under that identifier in it. An unknown project is answered before any permission is judged.

Media typeapplication/problem+json

A problem document (RFC 9457). Code-specific values are further members.

object
type
required
string
title
required
string
status
required
integer
code
required

Stable snake_case name of the problem, which clients branch on.

string
detail

An English explanation for humans; never what a client branches on.

string
request_id
required
string
retry_after

Seconds to wait before retrying, for a rate limit.

integer
permission

The permission the caller lacks, for forbidden, or the role’s permission the caller lacks, for role_not_allowed.

string
current_version

The version the entity has now, for version_mismatch.

integer format: int64
references

What still names what the write would remove or hide, for in_use.

Array<object>
object
kind
required

What names it, such as flag, segment or experiment.

string
key
required
string
environment
required

The key of the environment it is named in; null when it is named in every environment.

string
nullable
provider

The slug of the auth provider to sign in through instead, for sso_required.

string
used_by

What keeps an auth provider from being deleted, disabled or edited, for provider_in_use, such as identities, enforced domains or only way in (the only enabled provider while local login is disabled).

Array<string>
failure

Why a system the server asked did not answer as needed, for provider_unreachable; for sink_not_ready the failure class of the target’s check, such as connect or status.

string
failure_status

The HTTP status the target answered, for sink_not_ready, when it answered.

integer
failure_code

The target’s own error code, for sink_not_ready, when it speaks one, such as a ClickHouse exception or an S3 error code.

string
errors
Array<object>
object
pointer
required

JSON Pointer into the request body.

string
code
required
string
detail
required
string
params

The values of the rule broken, such as the bounds of a length, for a client to explain the violation in its own language.

object
key
additional properties
any

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"retry_after": 1,
"permission": "example",
"current_version": 1,
"references": [
{
"kind": "example",
"key": "example",
"environment": "example"
}
],
"provider": "example",
"used_by": [
"example"
],
"failure": "example",
"failure_status": 1,
"failure_code": "example",
"errors": [
{
"pointer": "example",
"code": "example",
"detail": "example",
"params": {}
}
]
}

The change conflicts with what exists, such as already_exists for a key already in use.

Media typeapplication/problem+json

A problem document (RFC 9457). Code-specific values are further members.

object
type
required
string
title
required
string
status
required
integer
code
required

Stable snake_case name of the problem, which clients branch on.

string
detail

An English explanation for humans; never what a client branches on.

string
request_id
required
string
retry_after

Seconds to wait before retrying, for a rate limit.

integer
permission

The permission the caller lacks, for forbidden, or the role’s permission the caller lacks, for role_not_allowed.

string
current_version

The version the entity has now, for version_mismatch.

integer format: int64
references

What still names what the write would remove or hide, for in_use.

Array<object>
object
kind
required

What names it, such as flag, segment or experiment.

string
key
required
string
environment
required

The key of the environment it is named in; null when it is named in every environment.

string
nullable
provider

The slug of the auth provider to sign in through instead, for sso_required.

string
used_by

What keeps an auth provider from being deleted, disabled or edited, for provider_in_use, such as identities, enforced domains or only way in (the only enabled provider while local login is disabled).

Array<string>
failure

Why a system the server asked did not answer as needed, for provider_unreachable; for sink_not_ready the failure class of the target’s check, such as connect or status.

string
failure_status

The HTTP status the target answered, for sink_not_ready, when it answered.

integer
failure_code

The target’s own error code, for sink_not_ready, when it speaks one, such as a ClickHouse exception or an S3 error code.

string
errors
Array<object>
object
pointer
required

JSON Pointer into the request body.

string
code
required
string
detail
required
string
params

The values of the rule broken, such as the bounds of a length, for a client to explain the violation in its own language.

object
key
additional properties
any

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"detail": "example",
"request_id": "example",
"retry_after": 1,
"permission": "example",
"current_version": 1,
"references": [
{
"kind": "example",
"key": "example",
"environment": "example"
}
],
"provider": "example",
"used_by": [
"example"
],
"failure": "example",
"failure_status": 1,
"failure_code": "example",
"errors": [
{
"pointer": "example",
"code": "example",
"detail": "example",
"params": {}
}
]
}