From e60c10bfc37a0c6f9442b74215b5d01390e82163 Mon Sep 17 00:00:00 2001 From: Samuel Date: Thu, 7 May 2026 16:13:08 +0200 Subject: [PATCH] fix(card): pass required type field to createCard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Planka v2 split cards into two kinds — `project` and `story` — and the `type` field is now required on `POST /api/lists/{listId}/cards`. Without it, every createCard returned 400 (visible in the trace logs: "created card NNN status 400" for every card). Existing email-to-card flow corresponds to the regular `project` kind (the spec's example default). `story` cards are for user-story workflows with sub-issues, which we don't use. --- src/planka.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/planka.ts b/src/planka.ts index 416be35..513b1f6 100644 --- a/src/planka.ts +++ b/src/planka.ts @@ -172,6 +172,7 @@ export default class Planka { listId, }, body: { + type: 'project', name: card.title, position: 0, },