mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
[Bug]: Cannot add tasks to a card using /api/cards/:cardId/tasks - returns E_NOT_FOUND #755
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ftaco-net on GitHub (Jul 8, 2025).
Where is the problem occurring?
I encountered the problem while interacting with the server (Backend)
What browsers are you seeing the problem on?
No response
Current behavior
I'm trying to create tasks under an Epic card using the following API endpoint:
POST /api/cards/:cardId/tasks
{
"position": 1,
"name": "example task name",
"isCompleted": false
}
However, even with a valid cardId (confirmed from the card creation response), the request fails with:
{ "code": "E_NOT_FOUND" }
Desired behavior
No response
Steps to reproduce
I have verified that:
The card ID is valid and accessible.
The endpoint URL is constructed correctly.
The API token has permissions (used successfully for creating cards and adding labels).
I have tried both /api/cards/:cardId/tasks and /api/cards/:cardId/card-tasks — both return the same error.
Other information
No response
@meltyshev commented on GitHub (Jul 8, 2025):
Hi! In v2, we added support for task lists on top of tasks. So, the available endpoints are:
POST /api/cards/:cardId/task-lists- Create a task listGET /api/task-lists/:id- Retrieve a task listPATCH /api/task-lists/:id- Update a task listDELETE /api/task-lists/:id- Delete a task listPOST /api/task-lists/:taskListId/tasks- Create a task in a listPATCH /api/tasks/:id- Update a taskDELETE /api/tasks/:id- Delete a task