Skip to main content

update

client.threads.update(threadId: string, data: UpdateThreadRequest): Promise<Thread>

Updates an existing thread with new information.

Modifies the specified thread's configuration, metadata, or other attributes. Only the fields provided in the request will be updated. Use this to make changes to existing threads.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to update
dataUpdateThreadRequestYesThe update request containing the fields to modify

Returns

Promise<Thread> — A promise that resolves to the updated Thread object

Example

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

const client = new CodeBoltClient();

const result = await client.threads.update('threadId', /* UpdateThreadRequest */);
console.log(result);