Skip to main content

update

client.agentExecutionPhases.update(name: string, data: UpdateAgentExecutionPhaseRequest): Promise<AgentExecutionPhase>

Updates an existing execution phase.

Modifies the configuration of an execution phase. Use this to change the phase description, ordering, or other properties.

Parameters

ParameterTypeRequiredDescription
namestringYesThe unique name of the phase to update
dataUpdateAgentExecutionPhaseRequestYesThe fields to update on the phase

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.agentExecutionPhases.update('name', /* UpdateAgentExecutionPhaseRequest */);
console.log(result);