Skip to main content

markCompleted

client.tasks.markCompleted(taskId: string): Promise<Task>

Marks a task as completed.

Updates the task's status to indicate that all work has been finished. This is typically called when a task's objectives have been fully achieved. Returns the updated task object.

Parameters

ParameterTypeRequiredDescription
taskIdstringYesThe unique identifier of the task to mark as completed

Returns

Promise<Task> — A promise that resolves to the updated Task object with completed status

Example

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

const client = new CodeBoltClient();

const result = await client.tasks.markCompleted('taskId');
console.log(result);