Skip to main content

updateThread

client.mail.updateThread(threadId: string, data: UpdateMailThreadRequest): Promise<MailThread>

Partially updates a mail thread's metadata.

Applies a partial update (PATCH) to the thread, allowing you to modify specific fields such as the subject, status, or participants without affecting other properties.

Parameters​

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to update
dataUpdateMailThreadRequestYesThe fields to patch on the thread

Returns​

Promise<MailThread> — A promise that resolves to the updated mail thread

Example​

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

const client = new CodeBoltClient();

const result = await client.mail.updateThread('threadId', /* UpdateMailThreadRequest */);
console.log(result);