Trigger an environment image build

Afficher en 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

Authentification

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.

Paramètres de chemin

orgIdstringRequis

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

Requête

This endpoint expects an object.
contentsstringRequis

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_namestringOptionnel

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

providerenumOptionnel

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

Réponse

The build (or null when skipped).

idstringOptionnel
repo_full_namestring or nullOptionnel
recipe_set_hashstringOptionnel
statusenumOptionnel
triggerstring or nullOptionnel
image_refstring or nullOptionnel
error_classstring or nullOptionnel
started_atstring or nullOptionnel
completed_atstring or nullOptionnel
created_atstringOptionnel
updated_atstringOptionnel

Erreurs

400
Bad Request Error