[Bug]: Cannot add tasks to a card using /api/cards/:cardId/tasks - returns E_NOT_FOUND #755

Open
opened 2026-02-04 21:14:19 +03:00 by OVERLORD · 1 comment
Owner

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

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_
Author
Owner

@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 list
  • GET /api/task-lists/:id - Retrieve a task list
  • PATCH /api/task-lists/:id - Update a task list
  • DELETE /api/task-lists/:id - Delete a task list
  • POST /api/task-lists/:taskListId/tasks - Create a task in a list
  • PATCH /api/tasks/:id - Update a task
  • DELETE /api/tasks/:id - Delete a task
@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 list - `GET /api/task-lists/:id` - Retrieve a task list - `PATCH /api/task-lists/:id` - Update a task list - `DELETE /api/task-lists/:id` - Delete a task list - `POST /api/task-lists/:taskListId/tasks` - Create a task in a list - `PATCH /api/tasks/:id` - Update a task - `DELETE /api/tasks/:id` - Delete a task
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#755