Skip to main content

ThreadSteps API

Thread Steps API

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

const client = new CodeBoltClient();

Quick Reference

MethodDescription
bulkDeleteBulk delete steps
bulkUpdateBulk update steps
completeComplete a step
createCreate a new step
deleteDelete a step
executeExecute a step
failMark a step as failed
getActiveStepsGet active steps for a thread
getByIdGet a step by internal ID
getByThreadIdGet steps by thread ID
getNextExecutableGet next executable step for a thread
getStatisticsGet step statistics for a thread
healthCheckHealth check for thread step service
listList all steps
searchSearch for a step by stepId
skipSkip a step
updateUpdate a step
updateStatusUpdate step status

Methods


bulkDelete

client.threadSteps.bulkDelete(data: BulkDeleteStepsRequest): Promise<void>

Bulk delete steps

ParameterTypeRequiredDescription
dataBulkDeleteStepsRequestYes

Returns: Promise<void>

Full reference →


bulkUpdate

client.threadSteps.bulkUpdate(data: BulkUpdateStepsRequest): Promise<void>

Bulk update steps

ParameterTypeRequiredDescription
dataBulkUpdateStepsRequestYes

Returns: Promise<void>

Full reference →


complete

client.threadSteps.complete(stepId: string, data?: CompleteStepRequest): Promise<ThreadStep>

Complete a step

ParameterTypeRequiredDescription
stepIdstringYes
dataCompleteStepRequestNo

Returns: Promise<ThreadStep>

Full reference →


create

client.threadSteps.create(data: CreateStepRequest): Promise<ThreadStep>

Create a new step

ParameterTypeRequiredDescription
dataCreateStepRequestYes

Returns: Promise<ThreadStep>

Full reference →


delete

client.threadSteps.delete(stepId: string): Promise<void>

Delete a step

ParameterTypeRequiredDescription
stepIdstringYes

Returns: Promise<void>

Full reference →


execute

client.threadSteps.execute(stepId: string, data?: ExecuteStepRequest): Promise<ThreadStep>

Execute a step

ParameterTypeRequiredDescription
stepIdstringYes
dataExecuteStepRequestNo

Returns: Promise<ThreadStep>

Full reference →


fail

client.threadSteps.fail(stepId: string, data?: FailStepRequest): Promise<ThreadStep>

Mark a step as failed

ParameterTypeRequiredDescription
stepIdstringYes
dataFailStepRequestNo

Returns: Promise<ThreadStep>

Full reference →


getActiveSteps

client.threadSteps.getActiveSteps(threadId: string): Promise<ThreadStep[]>

Get active steps for a thread

ParameterTypeRequiredDescription
threadIdstringYes

Returns: Promise<ThreadStep[]>

Full reference →


getById

client.threadSteps.getById(id: string): Promise<ThreadStep>

Get a step by internal ID

ParameterTypeRequiredDescription
idstringYes

Returns: Promise<ThreadStep>

Full reference →


getByThreadId

client.threadSteps.getByThreadId(threadId: string): Promise<ThreadStep[]>

Get steps by thread ID

ParameterTypeRequiredDescription
threadIdstringYes

Returns: Promise<ThreadStep[]>

Full reference →


getNextExecutable

client.threadSteps.getNextExecutable(threadId: string): Promise<ThreadStep | null>

Get next executable step for a thread

ParameterTypeRequiredDescription
threadIdstringYes

Returns: Promise<ThreadStep | null>

Full reference →


getStatistics

client.threadSteps.getStatistics(threadId: string): Promise<StepStatistics>

Get step statistics for a thread

ParameterTypeRequiredDescription
threadIdstringYes

Returns: Promise<StepStatistics>

Full reference →


healthCheck

client.threadSteps.healthCheck(): Promise<HealthCheckResponse>

Health check for thread step service

No parameters.

Returns: Promise<HealthCheckResponse>

Full reference →


list

client.threadSteps.list(params?: StepListParams): Promise<ThreadStep[]>

List all steps

ParameterTypeRequiredDescription
paramsStepListParamsNo

Returns: Promise<ThreadStep[]>

Full reference →


client.threadSteps.search(stepId: string): Promise<ThreadStep>

Search for a step by stepId

ParameterTypeRequiredDescription
stepIdstringYes

Returns: Promise<ThreadStep>

Full reference →


skip

client.threadSteps.skip(stepId: string, data?: SkipStepRequest): Promise<ThreadStep>

Skip a step

ParameterTypeRequiredDescription
stepIdstringYes
dataSkipStepRequestNo

Returns: Promise<ThreadStep>

Full reference →


update

client.threadSteps.update(stepId: string, data: UpdateStepRequest): Promise<ThreadStep>

Update a step

ParameterTypeRequiredDescription
stepIdstringYes
dataUpdateStepRequestYes

Returns: Promise<ThreadStep>

Full reference →


updateStatus

client.threadSteps.updateStatus(stepId: string, data: UpdateStepStatusRequest): Promise<ThreadStep>

Update step status

ParameterTypeRequiredDescription
stepIdstringYes
dataUpdateStepStatusRequestYes

Returns: Promise<ThreadStep>

Full reference →