Skip to main content
PUT

Behavior

Each update is saved as a new revision. Agents pinned to an earlier revision with id:N keep using that one. Sending the current spec changes nothing. The id can’t change. To change a few fields, patch the environment.

Headers

string
The ETag of the revision you based this change on, for example "3". If the environment has moved past it, the write fails with 412. Omit it, or send *, to write regardless.

Path parameters

string
required
The environment’s id, for example wide-browser or myorg/wide-browser.

Query parameters

string
A note stored on the new revision, such as why you made the change. Up to 500 characters. Shown by List revisions.

Request body

The full environment, with the same fields as Create an environment. The id must equal the URL identifier. Omitted fields reset to their defaults. That includes vault_id: omitting it unbinds any attached vault.

Response

200 with the updated environment object, with its new revision in the ETag header.

Errors