automate.setAutomationEnabled sets the desired enabled state of one automation.
automations/disable-automation.automation.ts
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.