Skip to main content

importTodos

client.todos.importTodos(data: ImportTodosRequest): Promise<TodoItem[]>

Imports todos from an external source.

Imports todo items from an external system or file format. This enables migrating tasks from other todo management tools or bulk loading tasks from predefined lists.

Parameters​

ParameterTypeRequiredDescription
dataImportTodosRequestYesImport payload containing external todo data

Returns​

Promise<TodoItem[]> — A promise that resolves to an array of imported TodoItem objects

Example​

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

const client = new CodeBoltClient();

const result = await client.todos.importTodos(/* ImportTodosRequest */);
console.log(result);