Skip to main content
PATCH
Update session chat

Authorizations

x-api-key
string
header
required

Path Parameters

sessionId
string
required

The id of the parent session.

chatId
string
required

The id of the chat being updated.

Body

application/json

Body for PATCH /api/sessions/{sessionId}/chats/{chatId}. At least one of title or modelId must be provided; whichever is provided is trimmed and must be non-empty after trimming.

title
string
required

New display title for the chat. Trimmed; must be non-empty after trimming.

Minimum string length: 1
Pattern: \S
modelId
string

AI Gateway model identifier the chat should be configured to use. Trimmed; must be non-empty after trimming.

Minimum string length: 1
Pattern: \S

Response

Chat updated successfully.

chat
object
required