Describes changes to the task list within a scratchpad update.
const changes: TaskListChanges = { upsert: [ { id: "t1", title: "Analyze sales data", status: "completed", notes: "Done" }, { id: "t4", title: "Write summary report", status: "pending" } ], remove: ["t2"] // Remove task t2}; Copy
const changes: TaskListChanges = { upsert: [ { id: "t1", title: "Analyze sales data", status: "completed", notes: "Done" }, { id: "t4", title: "Write summary report", status: "pending" } ], remove: ["t2"] // Remove task t2};
Optional
Remove tasks by ID.
Add new tasks or update existing ones (matched by id). If a task with the same id already exists, it is replaced entirely.
Describes changes to the task list within a scratchpad update.
Example