Hierarchy

  • FeatureFlagsApi

Constructors

Properties

configuration: Configuration
requestFactory: FeatureFlagsApiRequestFactory
responseProcessor: FeatureFlagsApiResponseProcessor

Methods

  • Exports 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.

    Parameters

    Returns Promise<string>

  • Updates 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.

    Parameters

    Returns Promise<EnvironmentResponse>

Generated using TypeDoc