create_rule
Define and configure rules for feature flags within a namespace, specifying segment keys, operators, and ranks to control flag evaluations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
flagKey | Yes | ||
namespaceKey | Yes | ||
rank | No | ||
segmentKey | Yes | ||
segmentOperator | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"flagKey": {
"minLength": 1,
"type": "string"
},
"namespaceKey": {
"minLength": 1,
"type": "string"
},
"rank": {
"type": "integer"
},
"segmentKey": {
"minLength": 1,
"type": "string"
},
"segmentOperator": {
"enum": [
"OR_SEGMENT_OPERATOR",
"AND_SEGMENT_OPERATOR"
],
"type": "string"
}
},
"required": [
"namespaceKey",
"flagKey",
"segmentKey"
],
"type": "object"
}