removeExpertFromChat()
removeExpertFromChat(
chatId:string,request:RemoveExpertFromChatRequest):Promise<ManagedChat>
Defined in: packages/core/src/index.ts:2627
Remove an expert from a chat
Parameters
| Parameter | Type | Description |
|---|---|---|
chatId | string | The unique identifier of the chat |
request | RemoveExpertFromChatRequest | Request with expert ID to remove |
Returns
Promise<ManagedChat>
The updated chat object
Throws
401 - Not authenticated
Throws
404 - Chat or expert not found
Example
import { removeExpertFromChat } from "@cpod/sdk";
const chat = await removeExpertFromChat("chat-123", {
expert_id: "expert-456",
});