Optimizely · Schema
Flag
A feature flag with variables and variations
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 |
| project_id | integer | The project this flag belongs to |
| variables | array | List of variables associated with this flag |
| variations | array | List of variations for this flag |
| environments | object | Map of environment keys to flag environment configurations |
| created | string | Timestamp when the flag was created |
| last_modified | string | Timestamp when the flag was last modified |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Flag",
"title": "Flag",
"type": "object",
"description": "A feature flag with variables and variations",
"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"
},
"project_id": {
"type": "integer",
"format": "int64",
"description": "The project this flag belongs to"
},
"variables": {
"type": "array",
"description": "List of variables associated with this flag",
"items": {
"$ref": "#/components/schemas/Variable"
}
},
"variations": {
"type": "array",
"description": "List of variations for this flag",
"items": {
"$ref": "#/components/schemas/FlagVariation"
}
},
"environments": {
"type": "object",
"description": "Map of environment keys to flag environment configurations",
"additionalProperties": {
"$ref": "#/components/schemas/FlagEnvironment"
}
},
"created": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the flag was created"
},
"last_modified": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the flag was last modified"
}
}
}