updateChat()
updateChat(
chatId:string,request:UpdateChatRequest):Promise<ManagedChat>
Defined in: packages/core/src/index.ts:2555
Update a chat's properties
Parameters
| Parameter | Type | Description |
|---|---|---|
chatId | string | The unique identifier of the chat |
request | UpdateChatRequest | Update 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",
});