Feature Flags

Delete a variant

Deletes 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.

delete/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/feature-flags/{feature_flag_id}/variants/{variant_id}
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Path parameters

feature_flag_idstring uuid required
Example:550e8400-e29b-41d4-a716-446655440000

The ID of the feature flag.

variant_idstring uuid required
Example:550e8400-e29b-41d4-a716-446655440002

The ID of the variant.

Response

No Content

Changes

No recorded changes to this operation across all 1 revision of this API.