Help & Support
Follow

Application API (v1): Add Multiple Cards

This method takes a collection of Card's JSON in the request body and adds the cards with the provided values. The card will be inserted into the specified Lane. If no Lane ID is specified, the card will be added to the first available Backlog lane. You must always provide a WIP Override reason when using the UpdateCards method. The request payload can contain no more than 100 Cards at a time. The response will contain the Cards that where inserted with the new ID populated.

See also: Add Card

Request URL (POST)

https://{accountname}.leankit.com/kanban/api/board/{boardId}/AddCards?wipOverrideComment={comment}

Sample request:

https://myaccount.leankit.com/kanban/api/board/101000/AddCards?wipOverrideComment=Override+comment+here
[
  {
    "LaneId":63475141,
    "Title":"Test Card 1",
    "Description":"Description of test card.",
    "TypeId":2,
    "Priority":1,
    "Size":0,
    "IsBlocked":false,
    "BlockReason":null,
    "Index":9999,
    "StartDate":null,
    "DueDate":"",
    "ExternalSystemName":"",
    "ExternalSystemUrl":"",
    "Tags":"",
    "ClassOfServiceId":null,
    "ExternalCardID":"",
    "AssignedUserIds":[ ]
  },
  {
    "LaneId":63475141,
    "Title":"Test Card 2",
    "Description":"Description of test card 2.",
    "TypeId":2,
    "Priority":1,
    "Size":0,
    "IsBlocked":false,
    "BlockReason":null,
    "Index":9999,
    "StartDate":null,
    "DueDate":"",
    "ExternalSystemName":"",
    "ExternalSystemUrl":"",
    "Tags":"",
    "ClassOfServiceId":null,
    "ExternalCardID":"",
    "AssignedUserIds":[ ]
  }
]

Response

Note that ReplyData contains the new IDs of the Cards that were added.

{
  "ReplyData":[
    [
      {
        "Id":113948696,
        "LaneId":63475141,
        "Title":"Test Card 1",
        "Description":"Description of test card 1.",
        "CreatedOn":null,
        "TypeName":"Feature",
        "TypeId":2,
        "Priority":1,
        "Size":0,
        "Active":false,
        "Color":null,
        "Version":0,
        "IsBlocked":false,
        "BlockReason":null,
        "TaggedUsers":null,
        "BlockStateChangeDate":null,
        "Index":9999,
        "Statistics":null,
        "StartDate":null,
        "DueDate":null,
        "UserWipOverrideComment":null,
        "ExternalSystemName":null,
        "ExternalSystemUrl":null,
        "ExternalCardIdPrefix":null,
        "Tags":null,
        "ClassOfServiceId":null,
        "ExternalCardID":null,
        "DrillThroughBoardId":null,
        "ParentCardId":null,
        "LastMove":"07/01/2014 05:07:24 PM",
        "LastActivity":"07/01/2014 05:07:24 PM",
        "DateArchived":null,
        "CommentsCount":0,
        "LastComment":"",
        "AttachmentsCount":0,
        "LastAttachment":"",
        "DrillThroughProgressPercentage":0,
        "DrillThroughProgressTotal":null,
        "DrillThroughProgressComplete":null,
        "DrillThroughProgressSizeComplete":null,
        "DrillThroughProgressSizeTotal":null,
        "CopiedFromCardId":0,
        "IsOlderThanXDays":false,
        "AssignedUserIds":[ ],
        "AssignedUserId":0
      },
      {
        "Id":113948697,
        "LaneId":63475141,
        "Title":"Test Card 2",
        "Description":"Description of test card 2.",
        "CreatedOn":null,
        "TypeName":"Feature",
        "TypeId":2,
        "Priority":1,
        "Size":0,
        "Active":false,
        "Color":null,
        "Version":0,
        "IsBlocked":false,
        "BlockReason":null,
        "TaggedUsers":null,
        "BlockStateChangeDate":null,
        "Index":9999,
        "Statistics":null,
        "StartDate":null,
        "DueDate":null,
        "UserWipOverrideComment":null,
        "ExternalSystemName":null,
        "ExternalSystemUrl":null,
        "ExternalCardIdPrefix":null,
        "Tags":null,
        "ClassOfServiceId":null,
        "ExternalCardID":null,
        "DrillThroughBoardId":null,
        "ParentCardId":null,
        "LastMove":"07/01/2014 05:07:25 PM",
        "LastActivity":"07/01/2014 05:07:25 PM",
        "DateArchived":null,
        "CommentsCount":0,
        "LastComment":"",
        "AttachmentsCount":0,
        "LastAttachment":"",
        "DrillThroughProgressPercentage":0,
        "DrillThroughProgressTotal":null,
        "DrillThroughProgressComplete":null,
        "DrillThroughProgressSizeComplete":null,
        "DrillThroughProgressSizeTotal":null,
        "CopiedFromCardId":0,
        "IsOlderThanXDays":false,
        "AssignedUserIds":[ ],
        "AssignedUserId":0
      }
    ]
  ],
  "ReplyCode":201,
  "ReplyText":"The Cards were successfully added."
}

 

 

 

 

 

 

Doc ID: 1191983319

Have more questions? Submit a request