Skip to main content

addTask

client.actionPlans.addTask(planId: string, data: AddActionPlanTaskRequest): Promise<unknown>

Adds a task to an existing action plan.

Appends a new task to the plan's task list. Tasks represent individual steps that need to be completed as part of the overall plan.

Parameters​

ParameterTypeRequiredDescription
planIdstringYesThe unique identifier of the action plan
dataAddActionPlanTaskRequestYesThe task definition to add to the plan

Returns​

Promise<unknown> — A promise that resolves when the task has been added

Example​

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

const client = new CodeBoltClient();

const result = await client.actionPlans.addTask('planId', /* AddActionPlanTaskRequest */);
console.log(result);