Update Ai Automation
update_ai_automationModify an existing AI automation by sending only the attributes to change. Update its prompt, triggers, allowed tools, or destination; any triggers you send replace the current ones.
Instructions
Change an existing AI automation. Only the attributes you send change; triggers, when sent, replace the automation's triggers. Changing the prompt, allowed tools or destination changes what every future run does, and the previous values are not kept. An AI automation is a saved instruction (prompt) that a Rootly AI agent runs on a schedule, on a matching event (incident, alert, Slack message, webhook) or on demand. When it runs, the agent may only use the tools listed in the automation's allowed_tool_keys (all team-allowed tools when null), and it posts its answer to the configured destination (a Slack channel or the incident timeline), or nowhere when destination_kind is none.
Requires OAuth scope ai.automations:write. Read-only attributes are ignored on write.
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>",
"data": "<data>"
},
"name": "update_ai_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Required. ID of the automation (fills `{id}` in /v1/ai/automations/{id}). Pass it as `id` -- this tool has no `automation_id` argument. | |
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||