Skip to main content

updateThreadStatus

plugin.chatApi.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 plugin from '@codebolt/plugin-sdk';

const result = await plugin.chatApi.updateThreadStatus(/* UpdateChatThreadStatusRequest */);
console.log(result);