Update Session
Update Session through the OMA API.
?beta=true.Authorizations
OMA workspace API key.
Path Parameters
Path parameter session_id
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true Body
Request parameters for updating a session. Omit a field to preserve its current value.
Human-readable session title.
1 - 500"Order #1234 inquiry"
Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve.
Vault IDs (vlt_*) to attach to the session. Not yet supported; requests setting this field are rejected. Reserved for future use.
Agent configuration update. Only tools and mcp_servers are updatable mid-session. Only valid for sessions created from an agent or deployment reference. The session must not be running.
Enforced spend ceiling for the session. Set an object to replace the budget of a session that was created with one, or null to remove it; omit to preserve. A budget cannot be added to a session created without one (rejected with reason budget_create_only), and a removed budget cannot be re-added. Allowed in any non-terminated status. Lowering max_list_cost to at or below the session's consumed list cost is rejected with reason budget_not_raised, and every model the session can run must have a public list price or the request is rejected with reason model_not_budgetable.
Response
Successful response (OK)
A Managed Agents session.
session "session"
"sesn_011CZkZAtmR3yMPDzynEDxu7"
SessionStatus enum
rescheduling, running, idle, terminated "idle"
A timestamp in RFC 3339 format
"2026-03-15T10:00:00Z"
A timestamp in RFC 3339 format
"2026-03-15T10:00:00Z"
"env_011CZkZ9X2dpNyB7HsEFoRfW"
"Order #1234 inquiry"
Resolved agent definition for a session. Snapshot of the agent at session creation time.
- Option 1
- Option 2
- Option 3
Vault IDs attached to the session at creation. Empty when no vaults were supplied.
Per-outcome evaluation state. One entry per define_outcome event sent to the session.
Cumulative token usage for the session.
Timing statistics for the session.
When the session was archived. Null if not archived.
null
The session's enforced spend ceiling, or null when no budget is set.
null
Deployment ID when the session was created from a deployment reference. Null otherwise.