Delete Environment Version
Archive a variant.
ARCHIVE, not hard delete, for the reason the parent archives: sessions
stamped with this version must keep resolving, and a comparison read over
historical runs must keep working. The row stays readable by id, appears in
the list under include_archived=true, refuses new sessions, loses the
default pointer if it held it, and frees its label for reuse.
Idempotent: archiving an already-archived version is another 204.
Authorizations
Workspace API key as a bearer token: Authorization: Bearer ish_sk_live_.... Keys are workspace-scoped machine principals minted in Settings > Developers (shown once at mint). Scopes: sessions:run (create a session, submit turns, close), sessions:read (read the session and its decision trace), environments:read and environments:write (manage the workspace's registered environments), tasks:read and tasks:write (manage the workspace's registered tasks), people:read and people:write (the people the workspace can run a session for), and usage:read (the workspace's own consumption, spend limits and rate-limit budgets). A key is minted with sessions:run, sessions:read, and tasks:read by default; every other scope must be requested, people:read and usage:read included. An ish user access token also works on the same header for personal scripts.
Path Parameters
Response
Successful Response