Skip to main content

updateThreadType

client.chat.updateThreadType(data: UpdateThreadTypeRequest): Promise<void>

Updates the type of a chat thread.

Changes the thread's type classification, which can affect routing, display, and agent behavior.

Parameters

ParameterTypeRequiredDescription
dataUpdateThreadTypeRequestYesThe type update payload

Returns

Promise<void> — A promise that resolves when the type has been updated

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.chat.updateThreadType(/* UpdateThreadTypeRequest */);
console.log(result);