Creates a new rule for the app specified in the header. By default, rules are enabled and can immediately be triggered.
Parameter | Required? | Type | Description |
---|---|---|---|
action | required | object | Describes what will happen once a rule is triggered |
geofence | required | object | Describes the geographic region to monitor |
name | required | string | Human-friendly name for the rule, rules for the same app cannot have the same name |
trigger | required | object | Describes what action triggers the rule |