AgentSession
Update an agent session
Partial update of an agent session. Currently supports writing status to drive a local-client lifecycle (running, needs_attention, completed, failed, terminated). Sets instance_type to local if not already set. Rejects with 409 if instance_type is already cloud — cloud-managed sessions are updated via the cloudInstance endpoints (start/end/terminate). Uses If-Match for optimistic locking against concurrent updates.
patch/agentSession/{id}
Path parameters
idstring required
The ID of the agent session
Headers
If-Matchstring
If-Match header for optimistic locking. Required when latest_instance_status is non-null to prevent concurrent clients from overwriting each other.
Request body
Response
The updated agent session