Help & Support
Follow

Application API (v1): Add a Task Card

This method takes JSON data in the request body and adds a new Task Card to a given Card's Task Board.

Request URL (POST)

https://{accountname}.leankit.com/kanban/api/v1/board/{boardId}/card/{cardId}/tasks/lane/{taskBoardLaneId}/position/{index}

The Card data to post is identical to the Add Card API. The cardId in the URL is the Card that owns the Task Board.

To add the Task Card to the default "To Do" lane, specify 0 for the {taskBoardLaneId}. To add the Task Card to the top of the lane, use 0 for the position {index}. To add the Task Card to the bottom of the lane, use a sufficiently large {index} value, such as 999.

Note: A valid Card Type ID is required. It is possible to have different/unique Card Types for Task Boards. Retrieve the current Board's information using Get Board Identifiers. Then, examine the CardTypes[] array where IsTaskType is true

Sample request:

POST https://myaccount.leankit.com/kanban/api/v1/board/123456/card/234567/tasks/lane/0/position/0
Authorization: Basic Zzzzxxyyww
Accept: application/json
Content-Type: application/json

{
  "Title": "New Task 1",
  "Description": "Description of task...",
"TypeId": 123123123 }

 

 

 

 

 

 

Doc ID: 1191979671

Have more questions? Submit a request