Kanban Lite

Interact with a Kanban Lite workspace – boards, cards, comments, attachments, columns, labels, and more

Comment → Add

AI-generated

Summary

Add a comment to a card

Inputs

  • cardId (required) — ID of the parent card to which the comment will be added
  • content (required) — Comment text (Markdown supported)
  • author — Comment author name
  • boardId — Optional target board ID. Leave empty to use the default board.
  • transport — Connection mode: 'api' for Remote API, 'sdk' for Local SDK (requires kanban-lite installed). Defaults to 'api'.
  • id — Unique ID of the record. For comment operations this may reference an existing comment when updating or deleting.

Output shape

The created comment object returned as a JSON payload. Shape is normalized consistent across API and SDK transport modes via the shared normalizeResult helper. In API mode a 204 response yields no data; otherwise the parsed JSON response body is returned.

Both Remote API and Local SDK transport modes produce identical normalized outputs. The operation routes through the transport abstraction: API mode POSTs to /api/cards/{cardId}/comments; SDK mode calls s.addComment(cardId, params, boardId).

Examples

Example 1: Add a comment via Remote API

Set transport to 'api', provide cardId and content; author is optional.

Example 2: Add a comment via Local SDK

Set transport to 'sdk', ensure kanban-lite is installed, provide cardId, content, and optionally author and boardId.

Links

Discussion