Switch an agent automation on or off
toggle_agent_automation
Switches one agent automation on a site on or off.
Scopeconfig:writeMakes changes
Switching it on recomputes its next run from now, and clears its failure count and any reason it was switched off. It is refused while the site is locked, when its schedule is closer together than 5 minutes, and when the person who set it up left the workspace or no longer has an active account. Switching it off keeps its instruction and its run history, and always works, even on a locked site. When Modulify switched an automation off, only Modulify can switch it back on. See Agents.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
automationId |
string | Yes | The automation id from list_agent_automations. |
enabled |
boolean | Yes | true to switch it on, false to switch it off. |