Trigger an environment image build

以 Markdown 格式查看

Builds the current Recipe set into an Image. Dedups on the recipe-set hash. Returns a null build when no Image is needed (runs on Tier-0 + the Session Start Script layer).

Scope: blueprints: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.
contentsstring必需

The environment spec YAML. base, env, and initialize are the Recipe (they build into the Image); session_start, knowledge, and clone sit alongside it and never trigger a build.

repo_namestring可选

Provider-native repo path for a repo-tier recipe; GitHub uses owner/repo, GitLab may include nested groups. Omit for the org tier.

providerenum可选

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

响应

The build (or null when skipped).

idstring可选
repo_full_namestring or null可选
recipe_set_hashstring可选
statusenum可选
triggerstring or null可选
image_refstring or null可选
error_classstring or null可选
started_atstring or null可选
completed_atstring or null可选
created_atstring可选
updated_atstring可选

错误

400
Bad Request Error