v29

latestOpenAPI 3.1.2raw.githubusercontent.com2026-08-014117755.2 KB
Chats

Update Chat

Updates a chat's title, privacy, or metadata.

patch/chats/{chatId}

Path parameters

chatIdstring required

The unique identifier of the chat.

Request body

titlestring

A new title to assign to the chat.

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted'

Updated visibility setting for the chat.

metadataobject nullable

User-defined key-value metadata. Merged with existing entries. Pass null for a value to delete that key, or pass null for the whole field to delete all entries. Maximum 50 active entries.

Response

Response for status 200

idstring required

Unique chat identifier.

titlestring

Chat title, if generated.

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted' required

Visibility setting of the chat.

createdAtstring date-time required

ISO timestamp of when the chat was created.

updatedAtstring date-time

ISO timestamp of when the chat was last updated.

authorIdstring required

ID of the user who created the chat.

vercelProjectIdstring

Associated Vercel project ID, if any.

metadataobject required

User-defined key-value metadata.

writePermissionboolean required

Whether the caller has write access to this chat.