v9

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0122134244.7 KB

Update Session

Updates session state without running the agent.

Args: app_name: The name of the application. user_id: The ID of the user. session_id: The ID of the session to update. req: The patch request containing state changes.

Returns: The updated session.

Raises: HTTPException: If the session is not found.

patch/apps/{app_name}/users/{user_id}/sessions/{session_id}

Path parameters

app_namestring required
user_idstring required
session_idstring required

Request body

stateDeltaobject required

Response

Successful Response

idstring required

Unique identifier of the session.

appNamestring required

Application name that owns the session.

userIdstring required

User ID that owns the session.

stateobject

Current persisted session state.

lastUpdateTimenumber

Unix timestamp in seconds for the most recent session update.