Skip to main content

update

plugin.tasksApi.update(taskId: string, data: UpdateTaskRequest): Promise<Task>

Updates an existing task with new information.

Modifies the specified task with the provided updates. Only the fields included in the request will be modified; other fields remain unchanged. Returns the updated task object.

Parameters

ParameterTypeRequiredDescription
taskIdstringYesThe unique identifier of the task to update
dataUpdateTaskRequestYesThe update request containing fields to modify

Returns

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

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.tasksApi.update('taskId', /* UpdateTaskRequest */);
console.log(result);