Skip to main content

updateThreadStatus

client.chat.updateThreadStatus(data: UpdateChatThreadStatusRequest): Promise<void>

Updates the status of a chat thread.

Changes the thread's status (e.g., active, paused, completed), which affects how it is displayed and processed.

Parameters

ParameterTypeRequiredDescription
dataUpdateChatThreadStatusRequestYesThe status update payload

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.chat.updateThreadStatus(/* UpdateChatThreadStatusRequest */);
console.log(result);