Trigger an environment image build

View as 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

Authentication

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.

Path parameters

orgIdstringRequired

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

Request

This endpoint expects an object.
contentsstringRequired

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_namestringOptional

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

providerenumOptional

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

Response

The build (or null when skipped).

idstringOptional
repo_full_namestring or nullOptional
recipe_set_hashstringOptional
statusenumOptional
triggerstring or nullOptional
image_refstring or nullOptional
error_classstring or nullOptional
started_atstring or nullOptional
completed_atstring or nullOptional
created_atstringOptional
updated_atstringOptional

Errors

400
Bad Request Error