Update an automation
Changes only the fields you send; trigger replaces the whole trigger, and null makes the automation manual. An automation runs as whoever last saved what it runs. If that is someone else and your edit changes what it runs or how and when it runs, the request is refused with 409 unless it sends "runAsMe": true. Renaming, disabling or turning off admin tools keeps the current writer.
Authorizations
Headers
Workspace identifier
Body
Let runs keep the admin-only data-model, saved-view and template tools, honored only while the user it runs as is a project admin. Can't be turned on with an API key; turn it on in Flow.
Branch-review triggers: whether the agent presents a plan for approval before writing. Defaults to true.
Whether script automation runs are enabled. Defaults to true; ignored in agent mode.
What runs: agent (the default) follows prompt; script runs script and needs the automation scripts beta.
agent, script "Nightly orphan check"
The instructions an agent automation follows. Required in agent mode.
Confirms that this automation should run as you from now on. Required when you are not its current writer and the edit changes what it runs, or how and when it runs. Renaming it, disabling it or turning off admin tools never changes whom it runs as. Sent with no other change, it only makes you the writer.
The python a script automation runs. Required in script mode.
When the automation runs. Omit or send null for an automation that is only run by hand.