v1
latestOpenAPI 3.1.02026-07-22100167210.7 KBEnvironments
Update Environment
Updates a non-global environment. Only provided fields are changed. PATCH /v1/environments/global returns 400 with a pointer to the nested resource endpoints (variables, files, skills, MCPs, warm hooks) — the Global env's metadata cannot be edited directly. Source-backed personal environments cannot change repository_id, repository_set_id, or system_prompt, but may set personal_preferences, instructions appended after the inherited system prompt. Returns 409 when an automation still references the environment in a way that blocks the requested change.
patch/v1/environments/{id}
Path parameters
idstring required
Environment UUID. The literal global is rejected with 400 — see endpoint description.
Request body
Response
Environment updated