Skip to main content

createThread

client.todos.createThread(data: CreateTodoThreadRequest): Promise<TodoList>

Creates a new todo thread.

Initializes a new thread for organizing related todos. Threads provide structure and context for groups of tasks, making them easier to manage and track together.

Parameters

ParameterTypeRequiredDescription
dataCreateTodoThreadRequestYesThread creation payload containing name and optional metadata

Returns

Promise<TodoList> — A promise that resolves to the created TodoList thread object

Example

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

const client = new CodeBoltClient();

const result = await client.todos.createThread(/* CreateTodoThreadRequest */);
console.log(result);