Skip to main content

setActiveThread

client.chat.setActiveThread(data: SetActiveThreadRequest): Promise<void>

Sets the active chat thread.

Switches the current focus to the specified thread, making it the primary conversation context for subsequent operations.

Parameters

ParameterTypeRequiredDescription
dataSetActiveThreadRequestYesThe active thread selection

Returns

Promise<void> — A promise that resolves when the active thread has been set

Example

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

const client = new CodeBoltClient();

const result = await client.chat.setActiveThread(/* SetActiveThreadRequest */);
console.log(result);