The cards.add() method adds a new card to cards.list and updates the Kanban UI.
DayPilot.Kanban.cards.add(card);card (DayPilot.Card) - card to be added
You can create a DayPilot.Card instance from an object that specifies the card properties before calling cards.add(). See cards.list for the supported card data fields.
const card = new DayPilot.Card({
id: 1,
column: "drafts",
swimlane: "23",
name: "Task 1",
text: "Description of the task"
});
dp.cards.add(card);Card Creating [doc.daypilot.org]