Skip to main content

updateThreadStatus

plugin.thread.updateThreadStatus(threadId: string, status: string): Promise<object>

Updates the status of a thread.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe thread ID
statusstringYesThe new status

Returns

Promise<object> — A promise that resolves with the thread status update response

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.thread.updateThreadStatus('threadId', 'status');
console.log(result);