Skip to main content

updateProgress

plugin.threadsApi.updateProgress(threadId: string, data: UpdateThreadProgressRequest): Promise<void>

Updates the progress information for a thread.

Modifies the thread's progress metrics, such as completion percentage, current step, or other progress indicators. This is useful for tracking execution progress and providing feedback to users.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to update
dataUpdateThreadProgressRequestYesThe request containing progress update information

Returns

Promise<void> — A promise that resolves when the progress has been updated

Example

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

const result = await plugin.threadsApi.updateProgress('threadId', /* UpdateThreadProgressRequest */);
console.log(result);