update_automation_rule
Replace an existing automation rule by overwriting all fields with the provided body; resend every field explicitly because omitting enabled stores false and disables the rule.
Instructions
Update Automation Rule
Replaces a rule: name, description, type, events, enabled and rules are all overwritten with the body, nothing is merged. Send enabled explicitly: leaving it out stores false and disables the rule. Read the rule first (get_automation_rule) and resend every field. The server does not validate the content of rules. Requires the automations:manage permission.
PUT /api/v1/automations/rules/{id}
Tags: Automations
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": {
"id": "<id>",
"name": "<name>",
"type": "<type>",
"rules": "<rules>"
},
"name": "update_automation_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Automation rule ID (path parameter) | |
| name | Yes | (body) | |
| type | Yes | (body) new_conversation: on every new conversation. conversation_update: on the listed events. time_trigger: periodic, on the hours_since_* conditions | |
| rules | Yes | (body) A JSON array of rule blocks, not a string | |
| events | No | (body) Only for conversation_update; leave empty for the other types | |
| enabled | No | (body) Only read by update_automation_rule, which stores it (false when omitted). Ignored on create: a created rule is always enabled | |
| description | No | (body) |