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. Returns 409 when an automation still references the environment in a way that blocks the requested change.
Authorizations
API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.
Path Parameters
Environment UUID. The literal global is rejected with 400 — see endpoint description.
Body
Response
Environment updated
An environment — the config bundle workspaces are created from. Holds an optional repository binding plus the runtime variables, files, skills, MCPs, and warm hook applied to every workspace built from it. Every organization has a singleton Global environment (is_global: true) whose values are layered onto every other environment.