For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/api/latest/feature-flags.md. A documentation index is available at /llms.txt.
Language
Datadog site

Feature Flags

Manage feature flags and environments.

Delete an environment

DELETEhttps://api.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.us3.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.us5.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.datadoghq.eu/api/v2/feature-flags/environments/{environment_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.ddog-gov.com/api/v2/feature-flags/environments/{environment_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/environments/{environment_id}

Update an environment

PUThttps://api.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.us3.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.us5.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.datadoghq.eu/api/v2/feature-flags/environments/{environment_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.ddog-gov.com/api/v2/feature-flags/environments/{environment_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/environments/{environment_id}

Get an environment

GEThttps://api.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.us3.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.us5.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.datadoghq.eu/api/v2/feature-flags/environments/{environment_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/environments/{environment_id}https://api.ddog-gov.com/api/v2/feature-flags/environments/{environment_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/environments/{environment_id}

Create an environment

POSThttps://api.datadoghq.com/api/v2/feature-flags/environmentshttps://api.us3.datadoghq.com/api/v2/feature-flags/environmentshttps://api.us5.datadoghq.com/api/v2/feature-flags/environmentshttps://api.datadoghq.eu/api/v2/feature-flags/environmentshttps://api.ap1.datadoghq.com/api/v2/feature-flags/environmentshttps://api.ap2.datadoghq.com/api/v2/feature-flags/environmentshttps://api.uk1.datadoghq.com/api/v2/feature-flags/environmentshttps://api.ddog-gov.com/api/v2/feature-flags/environmentshttps://api.us2.ddog-gov.com/api/v2/feature-flags/environments

List environments

GEThttps://api.datadoghq.com/api/v2/feature-flags/environmentshttps://api.us3.datadoghq.com/api/v2/feature-flags/environmentshttps://api.us5.datadoghq.com/api/v2/feature-flags/environmentshttps://api.datadoghq.eu/api/v2/feature-flags/environmentshttps://api.ap1.datadoghq.com/api/v2/feature-flags/environmentshttps://api.ap2.datadoghq.com/api/v2/feature-flags/environmentshttps://api.uk1.datadoghq.com/api/v2/feature-flags/environmentshttps://api.ddog-gov.com/api/v2/feature-flags/environmentshttps://api.us2.ddog-gov.com/api/v2/feature-flags/environments

Stop a progressive rollout

POSThttps://api.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.us3.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.us5.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.datadoghq.eu/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.ap1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.ap2.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.uk1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stophttps://api.us2.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/stop

Resume a progressive rollout

POSThttps://api.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.us3.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.us5.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.datadoghq.eu/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.ap1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.ap2.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.uk1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resumehttps://api.us2.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/resume

Pause a progressive rollout

POSThttps://api.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.us3.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.us5.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.datadoghq.eu/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.ap1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.ap2.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.uk1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pausehttps://api.us2.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/pause

Start a progressive rollout

POSThttps://api.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.us3.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.us5.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.datadoghq.eu/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.ap1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.ap2.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.uk1.datadoghq.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/starthttps://api.us2.ddog-gov.com/api/v2/feature-flags/exposure-schedules/{exposure_schedule_id}/start

Update targeting rules for a flag

PUThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocations

Create targeting rules for a flag env

POSThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocationshttps://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/allocations

Disable a feature flag in an environment

POSThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disablehttps://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/disable

Enable a feature flag in an environment

POSThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enablehttps://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/environments/{environment_id}/enable

Unarchive a feature flag

POSThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/unarchivehttps://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/unarchive

Archive a feature flag

POSThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/archivehttps://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/archive

Update a feature flag

PUThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}

Get a feature flag

GEThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}https://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}

Create a feature flag

POSThttps://api.datadoghq.com/api/v2/feature-flagshttps://api.us3.datadoghq.com/api/v2/feature-flagshttps://api.us5.datadoghq.com/api/v2/feature-flagshttps://api.datadoghq.eu/api/v2/feature-flagshttps://api.ap1.datadoghq.com/api/v2/feature-flagshttps://api.ap2.datadoghq.com/api/v2/feature-flagshttps://api.uk1.datadoghq.com/api/v2/feature-flagshttps://api.ddog-gov.com/api/v2/feature-flagshttps://api.us2.ddog-gov.com/api/v2/feature-flags

List feature flags

GEThttps://api.datadoghq.com/api/v2/feature-flagshttps://api.us3.datadoghq.com/api/v2/feature-flagshttps://api.us5.datadoghq.com/api/v2/feature-flagshttps://api.datadoghq.eu/api/v2/feature-flagshttps://api.ap1.datadoghq.com/api/v2/feature-flagshttps://api.ap2.datadoghq.com/api/v2/feature-flagshttps://api.uk1.datadoghq.com/api/v2/feature-flagshttps://api.ddog-gov.com/api/v2/feature-flagshttps://api.us2.ddog-gov.com/api/v2/feature-flags

Delete a variant

DELETEhttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}

Update a variant

PUThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}

Add a variant to a feature flag

POSThttps://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.us3.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.us5.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.datadoghq.eu/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.ap1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.ap2.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.uk1.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/variantshttps://api.us2.ddog-gov.com/api/v2/feature-flags/{feature_flag_id}/variants

Get a saved filter

GEThttps://api.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.us3.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.us5.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.datadoghq.eu/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.ddog-gov.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/saved-filters/{saved_filter_id}

Patch a saved filter

PATCHhttps://api.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.us3.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.us5.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.datadoghq.eu/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.ap1.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.ap2.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.uk1.datadoghq.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.ddog-gov.com/api/v2/feature-flags/saved-filters/{saved_filter_id}https://api.us2.ddog-gov.com/api/v2/feature-flags/saved-filters/{saved_filter_id}