Create or update the environment recipe

Validates the recipe YAML and stores it. repo_name selects the tier. Changes apply at the next session start.

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 stored recipe.
idstring
tierenum
repo_full_namestring or null
contentsstring
sourcestring
updated_bystring or null
created_atstring
updated_atstring

Errors

400
Bad Request Error
403
Forbidden Error