Optimizely · Schema

FlagInput

Input for creating or updating a flag

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
key string Unique key for the flag
name string Human-readable name of the flag
description string Description of the flag purpose
variables array List of variables associated with this flag
variations array List of variations for this flag
View JSON Schema on GitHub

JSON Schema

optimizely-flaginput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FlagInput",
  "title": "FlagInput",
  "type": "object",
  "description": "Input for creating or updating a flag",
  "properties": {
    "key": {
      "type": "string",
      "description": "Unique key for the flag"
    },
    "name": {
      "type": "string",
      "description": "Human-readable name of the flag"
    },
    "description": {
      "type": "string",
      "description": "Description of the flag purpose"
    },
    "variables": {
      "type": "array",
      "description": "List of variables associated with this flag",
      "items": {
        "$ref": "#/components/schemas/VariableInput"
      }
    },
    "variations": {
      "type": "array",
      "description": "List of variations for this flag",
      "items": {
        "$ref": "#/components/schemas/FlagVariationInput"
      }
    }
  }
}