Rule
A single filter rule for a dynamic location group.
Declaration
object RuleProperties
| Name | Type | Description |
|---|---|---|
field Required | string | The location attribute to filter on. Values: |
operator Required | string | Comparison operator to apply against |
value Required | Rule.Value | The value to match against. Pass a string for |
Discussion
The Rule object defines a filter for a DYNAMIC LocationGroup, specifying how the system selects locations at query time. Rules can mix different field values within the same group, and the system re-evaluates location membership whenever rules change, setting LocationGroup.systemStatus to PENDING until evaluation completes.
Example
{
"field": "adminArea",
"operator": "IN",
"value": ["California", "New York"]
}