Amplitude · Schema

CreateFlagRequest

A/B TestingAnalyticsExperimentationFeature FlagsProduct AnalyticsUser Behavior

Properties

Name Type Description
key string The unique key for the flag.
name string The display name of the flag.
description string A description of the flag's purpose.
variants array Array of variant configurations.
bucketingKey string The property used for bucketing.
View JSON Schema on GitHub

JSON Schema

amplitude-createflagrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateFlagRequest",
  "title": "CreateFlagRequest",
  "type": "object",
  "required": [
    "key"
  ],
  "properties": {
    "key": {
      "type": "string",
      "description": "The unique key for the flag."
    },
    "name": {
      "type": "string",
      "description": "The display name of the flag."
    },
    "description": {
      "type": "string",
      "description": "A description of the flag's purpose."
    },
    "variants": {
      "type": "array",
      "description": "Array of variant configurations.",
      "items": {
        "$ref": "#/components/schemas/VariantConfig"
      }
    },
    "bucketingKey": {
      "type": "string",
      "description": "The property used for bucketing."
    }
  }
}