Skip to main content

updateChat()

updateChat(chatId: string, request: UpdateChatRequest): Promise<ManagedChat>

Defined in: packages/core/src/index.ts:2555

Update a chat's properties

Parameters

ParameterTypeDescription
chatIdstringThe unique identifier of the chat
requestUpdateChatRequestUpdate data (title, etc.)

Returns

Promise<ManagedChat>

The updated chat object

Throws

401 - Not authenticated

Throws

404 - Chat not found

Example

import { updateChat } from "@cpod/sdk";

const updated = await updateChat("chat-123", {
title: "Updated Chat Title",
});