v2
chat
chat
Update session pinned
Pin or unpin a chat session.
Pinned sessions surface at the top of the user's sidebar list ahead of unpinned ones, regardless of recency.
Args: session_id: The session ID to update. request: Request body containing the new pin state. user_id: The authenticated user's ID.
Returns: dict: Status of the update.
Raises: HTTPException: 404 if session not found or not owned by user.
patch/api/chat/sessions/{session_id}/pinned
Path parameters
session_idstring required
Request body
Response
Successful Response
object required
Changes
Changed in 2 of the 92 revisions of this API.11
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 96 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲