Skip to main content
POST
History is never rewritten: the spec of revision number becomes the environment’s next revision, with the message Restored from vN and restored_from set to N. Agents use it from their next session, except those pinned to another revision with id:N. Restoring a spec equal to the current one changes nothing. The restored spec is checked like an update.

Headers

string
The ETag you read, for example "3". A stale value fails with 412. Omit it, or send *, to skip the check. See Revisions and concurrency.

Path parameters

string
required
The environment’s id, for example wide-browser or myorg/wide-browser.
integer
required
The revision to restore, from List revisions.

Response

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

Errors

Plus the common errors.