Set Default Environment Version
Point this environment’s default at this variant.
Sessions that name the environment WITHOUT pinning a version resolve here from now on. Sessions already opened are untouched: the version they ran against is stamped on the row and nothing re-resolves it.
Idempotent, and the outgoing default is cleared in the same transaction.
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
A declared variant as the caller sees it.
Set when the variant is archived. An archived version stays readable and comparable so its stored runs keep resolving, is hidden from the default list, refuses new sessions, and frees its label for reuse.
This variant's own config, or null when it inherits the environment's. Replaces (never merges with) the environment's.
The config a run pinned to this version operates under: this version's config when set, otherwise the environment's. Provided so callers never re-implement the replace rule.
Whether a session that names this environment WITHOUT pinning a version resolves here. At most one live default per environment; an environment with no default resolves unversioned.
Monotonic per environment, server-assigned, and never reused, even after the variant is archived.