The Target Groups API allows you to create, read, update, and delete target groups that define reusable targeting rules for flag conditions.
Create a target group
Creates a new target group.
Request
Request body
| Field | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
Unique name for the target group |
|
string |
No |
Human-readable description |
|
object |
Yes |
Targeting conditions (see Condition structure) |
Condition structure
Target groups use conditions to define who belongs to the group.
Root structure
| Field | Type | Description |
|---|---|---|
|
string |
Logic between conditions: |
|
array |
Array of condition objects |
Condition operators
| Operator | Operand Type | Description |
|---|---|---|
|
None |
Property is not set |
|
None |
Boolean property is true |
|
None |
Boolean property is false |
|
String, Number |
Equals |
|
String, Number |
Not equals |
|
Number |
Greater than |
|
Number |
Greater than or equal |
|
Number |
Less than |
|
Number |
Less than or equal |
|
Array |
Value is in the provided array |
|
String |
Matches regular expression |
|
String |
Semantic version equals |
|
String |
Semantic version greater than or equal |