Optional requestFactory: FeatureFlagsApiRequestFactoryOptional responseProcessor: FeatureFlagsApiResponseProcessorPrivate configurationPrivate requestPrivate responseThe request object
Optional options: ConfigurationCreates a new targeting rule (allocation) for a specific feature flag in a specific environment.
The request object
Optional options: ConfigurationCreates a new feature flag with variants.
The request object
Optional options: ConfigurationCreates an environment for organizing feature flags. A non-null subject authorization provider ID
must be registered in the current organization and site, even when authorization is disabled. An unknown
ID returns 400 Bad Request; an unavailable registry returns 503 Service Unavailable.
The request object
Optional options: ConfigurationAdds a single new variant to an existing feature flag. This endpoint is
additive-only: it never modifies existing variants. A request whose key
already exists on the flag is rejected with 409 Conflict; a value
whose type does not match the flag's value_type is rejected with 400.
The server generates the variant UUID and returns it in the response body;
callers (for example, the flag-migration tool) need this UUID to reference
the new variant in subsequent allocation syncs.
The request object
Optional options: ConfigurationDeletes an environment. This operation cannot be undone.
The request object
Optional options: ConfigurationDeletes a variant from a feature flag.
When backend approvals are enabled and the flag requires approval, this endpoint creates and returns a FlagSuggestion with 201 Created instead of deleting the variant immediately. If a pending suggestion already exists for this flag's variant property, the endpoint returns 409 Conflict.
The request object
Optional options: ConfigurationDisable a feature flag in a specific environment.
The request object
Optional options: ConfigurationEnable a feature flag in a specific environment.
The request object
Optional options: ConfigurationExports the organization's feature flag change events as a CSV file, newest first, without pagination. It accepts the same filters as the List feature flag change history endpoint, and its columns match the CSV export on the flag history page: Flag Version, Flag Name, Flag Key, Flag UUID, Action, User Name, User Email, User Type, Environment, and Timestamp.
If an export fails before the file starts, the response is a JSON:API error. Large exports stream as they are read. If an export fails after streaming starts, the connection closes before the file ends, so the download fails instead of returning a file with missing rows. An export must finish within the 60-second request timeout. If an export times out, narrow the date range.
The request object
Optional options: ConfigurationReturns the details of a specific feature flag including variants and environment status.
The request object
Optional options: ConfigurationReturns the details of a specific environment.
The request object
Optional options: ConfigurationReturns a saved filter by ID, including its full targeting rules, conditions, and values. Supports both saved lists and saved rules. Targeting rules are combined with OR, and conditions within each rule are combined with AND. Returns the stored filter definition rather than evaluating it against users or organizations. Archived filters can be retrieved. Filters that are deleted or belong to another organization return a not found error.
The request object
Optional options: ConfigurationReturns the organization's feature flag change events, newest first.
Each event includes a readable description of the change.
All filters are optional, and events must match every filter you set. Without a date range, the whole history is listed.
Results are paginated with page[limit] and page[offset]; follow links.next to read further back.
The request object
Optional options: ConfigurationReturns a paginated list of feature flags for the organization.
Supports filtering by key, tags, teams, SDK availability, production status, and other flag properties.
Use page[limit] and page[offset] to paginate, or follow the next link in the response.
The request object
Optional options: ConfigurationReturns a list of environments for the organization.
Use dd_env to filter by an exact DD_ENV value in an environment's queries list.
The request object
Optional options: ConfigurationPauses a progressive rollout while preserving rollout state.
The request object
Optional options: ConfigurationResumes progression for a previously paused progressive rollout.
The request object
Optional options: ConfigurationStarts a progressive rollout and begins progression.
The request object
Optional options: ConfigurationStops a progressive rollout and marks it as aborted.
The request object
Optional options: ConfigurationUnarchives a previously archived feature flag, making it visible in the main list again.
The request object
Optional options: ConfigurationUpdates targeting rules (allocations) for a specific feature flag in a specific environment. This operation replaces the existing allocation set with the request payload.
The request object
Optional options: ConfigurationUpdates an existing feature flag's metadata such as name and description. Does not modify targeting rules or allocations.
To change the owning team, update tags and include a tag of the form
team:<team-handle> in the array. tags is a full replacement of the
existing tag set (including any team: tag), so include every tag you
want to keep, not just the ones you're adding.
The request object
Optional options: ConfigurationUpdates an environment's name, DD_ENV values, and settings.
Every request must include name and queries, even when changing only subject authorization or evaluation data settings.
To preserve the current name and DD_ENV values, get the environment first and include those values in the request.
Omitting is_production or require_feature_flag_approval resets that setting to false.
Include their current values to preserve them. Omitting observe_full_evaluation_data preserves its current value. Omitting either subject authorization field preserves its stored value. Set subject_authorization_oidc_provider_id to null to clear the association while subject authorization is disabled. The following requests return 400 Bad Request: enabling subject authorization without a provider, an unrecognized subject_authorization_state value, a malformed or zero UUID provider ID, or an unregistered provider ID. If the provider registry is unavailable, a new provider ID returns 503 Service Unavailable. Omitted, cleared, or unchanged provider IDs skip the registry check, including when enabling a retained provider. Saving does not verify provider eligibility or key publication, so a successful save does not mean the environment is ready for assignment requests. Concurrent policy changes return 409 Conflict; reload the environment and retry.
The request object
Optional options: ConfigurationPartially updates a saved filter. Supports both LIST and RULES filters.
Supply at least one of name, description, or targeting_rules. Omitted or null fields
are preserved. Supplying targeting_rules replaces the entire collection and propagates
changes to every feature flag that references the saved filter.
Metadata-only updates do not require edit permission or approval on those feature flags.
Rule updates require edit permission on all consumer flags and are rejected when approval
is required, unless the caller has the feature_flag_approvals_override permission.
The optional last_updated_at field detects stale updates. It does not set the update time.
The request object
Optional options: ConfigurationUpdates the name and value of an existing variant on a feature flag.
When backend approvals are enabled and the flag requires approval, this endpoint creates and returns a FlagSuggestion with 201 Created instead of applying the change immediately. Use the returned suggestion id to approve or reject the change. If a pending suggestion already exists for this flag's variant property, the endpoint returns 409 Conflict.
The request object
Optional options: ConfigurationGenerated using TypeDoc
Archives a feature flag. Archived flags are hidden from the main list but remain accessible and can be unarchived.