Create an automation
Creates one automation at the end of the project’s list. It runs as you: its scheduled and webhook runs use your access to the project for as long as you can edit it, and pause when you no longer can. Check runsAs on the response. Script automations need the automation scripts beta, and allowAdminTools cannot be turned on with an API key.
Authorizations
Headers
Workspace identifier
Path Parameters
Body
"Nightly orphan check"
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 The instructions an agent automation follows. Required in agent mode.
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.