PostHog · Schema
FeatureFlagCreateRequestSchema
A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording
Properties
| Name | Type | Description |
|---|---|---|
| key | string | Feature flag key. |
| name | string | Feature flag description (stored in the `name` field for backwards compatibility). |
| filters | object | Feature flag targeting configuration. |
| active | boolean | Whether the feature flag is active. |
| tags | array | Organizational tags for this feature flag. |
| evaluation_contexts | array | Evaluation contexts that control where this flag evaluates at runtime. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/FeatureFlagCreateRequestSchema",
"title": "FeatureFlagCreateRequestSchema",
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Feature flag key."
},
"name": {
"type": "string",
"description": "Feature flag description (stored in the `name` field for backwards compatibility)."
},
"filters": {
"allOf": [
{
"$ref": "#/components/schemas/FeatureFlagFiltersSchema"
}
],
"description": "Feature flag targeting configuration."
},
"active": {
"type": "boolean",
"description": "Whether the feature flag is active."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Organizational tags for this feature flag."
},
"evaluation_contexts": {
"type": "array",
"items": {
"type": "string"
},
"description": "Evaluation contexts that control where this flag evaluates at runtime."
}
}
}