API reference · Automation
POST/api/v1/automation/rules/bulk-execute

Bulk execute automation rules

Starts execution attempts for up to 20 automation rules for the authenticated tenant. Authentication uses x-api-key with optional x-tenant-id; RBAC requires automation:execute. The controller validates bulkExecutionSchema and calls executeAutomationRule per id. sequential_execution=true runs serially; otherwise Promise.all is used. Per-rule errors are returned in a 200 response.

RBAC · automation

Request body

Content type: application/json · schema BulkExecuteRequest

automation_rule_idsarray of stringRequired
Rule UUIDs to execute.
min items 1 · max items 20
itemsstring <uuid>
execution_dataobject
Optional shared execution payload for each run.
override_conditionsboolean
Allow execution of inactive rules when true.
sequential_executionboolean
When true, executes rules sequentially; otherwise Promise.all is used.

Response body

Success response 200 · schema BulkExecuteResponse

dataobjectRequired
actionstringRequired
Enum: bulk_execute
rule_idsarray of stringRequired
itemsstring <uuid>
startedintegerRequired
≥ 0
errorsarray of stringRequired
Per-rule failures emitted as `<ruleId>: <error message>` entries.
itemsstring
sequentialboolean
messagestringRequired

Response codes

200
Bulk execution attempted for all ids; includes started count and per-id errors.
400
Body validation failed.
401
API key is missing, invalid, expired, over limit, or the key user was not found.
403
Authenticated user lacks automation:execute permission.
500
Unexpected controller or service failure before result aggregation.