Create automation rule
Creates a new automation rule. Set rule_type to 'trigger' for condition-based rules or 'schedule' for time-based rules.
Authorization
authorization<token>Use your API key here.
In: header
Request Body
application/jsonRequirednameRequiredstringMinimum length:
1rule_typeRequiredstringValue in:
"trigger" | "schedule"site_idsRequiredarray<string>statusstringDefault:
"enabled"Value in: "enabled" | "disabled"filterRequiredobjectconditionobjectscheduleobjectfrequencystringDefault:
"every_15_min"Value in: "every_5_min" | "every_15_min" | "every_hour"actionsRequiredarray<object>stop_conditionobjectOptional stop condition. PATCH semantics: omit the field to leave both sub-fields unchanged; send null for the whole object to clear both; send null for a single sub-field to clear just that one; send a number to set it. period_minutes maps 1:1 to the underlying cooldownMinutes (no lossy conversion).
Default Response