Create an automation

以 Markdown 格式查看

Creates the automation’s configuration (instructions + environment binding). Add a trigger with POST /automations/{automationId}/triggers to make it fire. The repo must already be connected.

Scope: automations:write

身份验证

AuthorizationBearer

Your ara_ API key from Settings > Ara API. Keys are capability-scoped: run, plugins:read, secrets:read, secrets:write, sessions:read, knowledge:read, repos:read, repos:write, reviews:read, reviews:write, analytics:read, org:read, org:write, attachments:read, attachments:write, plugins:write, guardrails:read, guardrails:write.

路径参数

orgIdstring必需

Organization id or slug. Resolve it with GET /v3/self.

请求

This endpoint expects an object.
instructionsstring必需
The system instructions the automation runs with.
repostring必需

Connected repository path. GitHub uses owner/name; GitLab projects may include nested groups, such as group/subgroup/project.

namestring可选

Display name. Defaults to the first line of instructions.

providerenum可选

Source-control provider for the connected repository. Defaults to GitHub first, then GitLab if no GitHub repository matches.

modelstring or null可选

Model override. null uses the workspace default. New runs accept only the currently available Ara model catalog.

toolsobject可选

响应

Created.
idstring可选
org_idstring可选
namestring or null可选
instructionsstring or null可选
The system instructions the automation runs with.
modelstring or null可选
enabledboolean可选

A paused (false) automation’s triggers never fire.

toolsobject可选
environmentobject可选
triggerslist of objects可选
Every condition that fires this automation. Empty until you add one.
created_atdatetime可选
updated_atdatetime可选

错误

400
Bad Request Error
402
Payment Required Error