Update a session
Update the model configuration of an existing session.
Args:
session_id (str): The session to update.
body (UpdateSessionRequest): Fields to update.
user_id (str): Injected authenticated user ID.
storage (StorageBase): Injected storage backend.
Returns:
SessionRecord: The full session record after the update.
Raises:
HTTPException: 404 if the session, agent, or credential does not
exist or does not belong to the authenticated user.
Documentation Index
Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Path Parameters
Query Parameters
Agent the session belongs to.
Body
Request body for updating an existing session.
Omit any field to keep its current value.
Response
Successful Response
The session record.
Session configuration — set at creation, updatable via PATCH.
Unique identifier for the credential.
The source that created the session.
user, schedule The agent state that should be saved and loaded from storage.