Update an automation
automations_updateUpdates an existing draft or paused Automation. Before changing a running Automation, read it by ID, retain its status in the current task only, pause it, apply the update, and use bounded direct item reads until is_updating is false. Run preflight, return it to running only if it was running before and preflight passes, and verify the final status. If the update fails before changing the Automation, restore its prior running status when preflight passes. If readiness or the prior status cannot be restored, leave it paused and immediately report the failure; never activate an Automation that was not already running. Effect: workspace-change. Retry after reading the current resource state. Permission: automations:write. API reference: https://mailrith.com/developers/api-reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The exact JSON request body defined by the Mailrith public API contract. | |
| automation_id | Yes | The automation identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| response | No | ||
| request_id | Yes | The stable correlation ID for this MCP tool invocation. | |
| operation_id | Yes | The stable Mailrith public API operation ID. |