---
title: Variants and Flag Types
description: >-
  Learn about feature flag data types and how to manage flag variants in
  Datadog.
breadcrumbs: Docs > Feature Flags > Concepts > Variants and Flag Types
---

# Variants and Flag Types

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

Each feature flag has a **variant type** that defines the data type of values the flag can return. **Variants** are the specific values your application can receive when it evaluates the flag.

## Flag types{% #flag-types %}

Datadog Feature Flags support five data types:

| Type        | Description             |
| ----------- | ----------------------- |
| **Boolean** | `true` or `false`       |
| **String**  | Text values             |
| **Integer** | Whole numbers           |
| **Number**  | Floating-point numbers  |
| **JSON**    | Structured JSON objects |

**Note**: The flag key and variant type cannot be changed after you create the flag.

## Add a variant{% #add-a-variant %}

1. Navigate to your feature flag's details page.
1. Open the **Manage Implementation & Variants** side panel.
1. Click **Add Variant**.
1. Enter the variant name and value, then save.

**Note**: You cannot add variants to Boolean flags. Boolean flags are limited to `true` and `false`.

## Edit a variant{% #edit-a-variant %}

1. Navigate to your feature flag's details page.
1. Open the **Manage Implementation & Variants** side panel.
1. Click the pencil icon next to the variant you want to modify.
1. Update the variant's name, value, or both, then save.

{% alert level="warning" %}
Changing the value of a variant that is being served as part of a running experiment may invalidate the results of that experiment.
{% /alert %}

## Further reading{% #further-reading %}

- [Environments](https://docs.datadoghq.com/feature_flags/concepts/environments.md)
- [Distribution Channels](https://docs.datadoghq.com/feature_flags/concepts/distribution_channels.md)
