Optimizely · Schema

VariableInput

Input for creating or updating a variable

A/B TestingContent ManagementCustomer DataE-CommerceExperimentationFeature FlagsMarketing

Properties

Name Type Description
key string Unique key for the variable
type string Data type of the variable
default_value string Default value of the variable
View JSON Schema on GitHub

JSON Schema

optimizely-variableinput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/VariableInput",
  "title": "VariableInput",
  "type": "object",
  "description": "Input for creating or updating a variable",
  "properties": {
    "key": {
      "type": "string",
      "description": "Unique key for the variable"
    },
    "type": {
      "type": "string",
      "description": "Data type of the variable",
      "enum": [
        "string",
        "integer",
        "double",
        "boolean",
        "json"
      ]
    },
    "default_value": {
      "type": "string",
      "description": "Default value of the variable"
    }
  }
}