Skip to main content

updateTaskStep

client.chat.updateTaskStep(threadId: string, stepId: string, data: UpdateThreadStepData): Promise<ChatThreadStep>

Updates a step in a thread via the task endpoint.

Modifies the properties of a thread step, accessed through the task management API path.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread
stepIdstringYesThe unique identifier of the step to update
dataUpdateThreadStepDataYesThe fields to update on the step

Returns

Promise<ChatThreadStep> — A promise that resolves to the updated ChatThreadStep

Example

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

const client = new CodeBoltClient();

const result = await client.chat.updateTaskStep('threadId', 'stepId', /* UpdateThreadStepData */);
console.log(result);