Update Rule
update_ruleUpdate an existing automation rule by id. Accepts the full rule definition (same shape as create_rule): read it with get_rule, change what you need and send the whole definition back — an omitted field takes its default (enabled=true, executionMode=propose). The preview lists each field that changes, before and after, and refuses unacknowledged conflicts; the commit is refused if the rule was edited since the preview. Requires Write + automation.execute; company rules need the Admin role and an operator (unpinned) credential. From the in-app assistant a rule cannot be switched to, or turned on in, Autopilot.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ruleId": "<ruleId>",
"rule": "<rule>"
},
"name": "update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | The updated rule definition — same shape as create_rule. | |
| ruleId | Yes | Rule id to update (GUID). | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| rule | No | ||
| effects | No | ||
| preview | No | ||
| warnings | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| previousVersion | No | ||
| idempotentReplay | No |