Patch an environment
Environments
Patch an environment
Change individual fields of an environment without resending the full spec.
PATCH
Patch an environment
Partial update: only the fields you send change, everything else is preserved. Send a field as
null to clear it, for example vault_id: null to unbind a vault. The merged result is validated like a full update, and id and kind are not patchable.
This makes binding a vault to an existing environment a one-liner, with no need to resend the full spec.
Returns the updated Environment object.
Path parameters
The environment’s
id (e.g. wide-browser or myorg/wide-browser). Slash-containing identifiers are supported.Request body
Any subset of the Browser spec’s fields exceptid and kind: start_url, headless, mode, vault_id, browser_profile_id, network.
Examples
Bind a vault, leaving the rest of the spec untouched:Errors
| Status | Cause |
|---|---|
403 | The environment is reserved (h/) and read-only. |
404 | Environment not found or you don’t have access. |
422 | The merged spec fails validation, for example an invalid mode. |