Finetune Agent
agent-chat-sessions

Update Session

Update a chat session's title or archive status.

Args: request: FastAPI request used by the rate-limiter. session_id: Chat session primary key. body: Partial update payload. auth: Authenticated caller. service: Chat-session service.

Returns: ChatSessionResponse after the update.

Raises: HTTPException: 404 when the session is missing or not owned.

patch/finetune-agent/sessions/{session_id}

Path parameters

session_idstring uuid required

Request body

titlestring nullable

New title for the session

is_archivedboolean nullable

Archive status of the session

Response

Successful Response

idstring required
user_idstring required
titlestring required
created_atstring required
updated_atstring required
is_archivedboolean
project_idstring nullable
modal_sandbox_idstring nullable

Modal sandbox id for the persistent MLE agent runtime, if a sandbox is associated with this session. Surfaced for nightly smoke tests and observability — never used for client routing.

Changes