> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Set automation enabled

> Enable or disable an Automate.ax automation.

`automate.setAutomationEnabled` sets the desired enabled state of one automation.

```ts automations/disable-automation.automation.ts theme={null}
import { automation } from "automate.ax"
import { automate } from "automate.ax/automate"

export default automation("Disable automation", () => {
  automate.setAutomationEnabled({
    automation: "auto_123",
    enabled: false,
  })
})
```

`automation` accepts an imported automation descriptor, exact ID, or unique deployed description. Setting the current value again is a safe, idempotent operation. The action returns the database transaction ID and requires `project:update`.
