The Flag Configurations API allows you to manage per-environment flag settings, including default values, targeting conditions, and rollout configurations.
Update flag configuration
Updates the complete configuration for a flag in a specific environment.
Request
Path parameters
| Parameter | Type | Description |
|---|---|---|
|
string |
Required. The application ID. |
|
string |
Required. The flag ID. |
|
string |
Required. The environment ID. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
|
boolean |
No |
Whether the flag is enabled in this environment. |
|
any |
No |
Default value when no conditions match. |
|
array |
No |
Array of targeting conditions (evaluated in order). |
|
string |
No |
Property for consistent percentage-based evaluation. |
|
boolean |
No |
Whether multiple variants are enabled. |
Condition structure
Conditions define when a flag returns a specific value. Each condition contains:
-
A logical operator wrapper (
allOforanyOf) that groups one or more criteria. -
A
flagValuefield specifying what value to return when the condition matches.
Conditions are evaluated in order until one matches. If no condition matches, the defaultValue is used.
Basic structure
| Field | Type | Description |
|---|---|---|
|
array |
All criteria must match (AND logic). |
|
array |
At least one criterion must match (OR logic). |
|
any |
Value to return when condition matches. |
Property condition
Test custom property values:
| Field | Type | Description |
|---|---|---|
|
string |
Custom property name. |
|
string |
Comparison operator (see operators reference below). |
|
any |
Value to compare against (not required for |
|
array |
Array of values for |
Application version targeting
Target specific application versions using semantic versioning with the rox.app_release property:
Combining multiple criteria
Use allOf to require all criteria match (AND logic):
Use anyOf to match any criterion (OR logic):
Property operators reference
| Operator | Description |
|---|---|
|
Boolean property is true. |
|
Boolean property is false. |
|
Property has no value. |
|
Value equals the operand. |
|
Value does not equal the operand. |
|
Value is greater than the operand. |
|
Value is greater than or equal to the operand. |
|
Value is less than the operand. |
|
Value is less than or equal to the operand. |
|
Value is in the provided array (use |
|
Value matches the regular expression pattern. |
|
Semantic version equals the operand. |
|
Semantic version does not equal the operand. |
|
Semantic version is greater than the operand. |
|
Semantic version is greater than or equal to the operand. |
|
Semantic version is less than the operand. |
|
Semantic version is less than or equal to the operand. |