Help & Support
Follow

Application API (v1): Update Multiple Cards at Once

This method takes a collection of Card's JSON in the request body and updates the cards (using the cardId in the card JSON) with the provided values. The cardId is not added to the url...just in the card JSON in the body. You must always provide a WIP Override reason when using the UpdateCards method.

Request URL (POST):

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

Example request:

https://myaccount.leankit.com/kanban/api/board/101000/UpdateCards?wipOverrideComment=My+Override+Reason

Example request body:

[
  {
    "Id": 0,
    "LaneId": 306,
    "Title": "Test Card 0",
    "Description": null,
    "CreatedOn": null,
    "TypeName": null,
    "TypeId": 2,
    "Priority": 0,
    "Size": 12,
    "Active": false,
    "Version": 0,
    "IsBlocked": false,
    "BlockReason": null,
    "Index": 0,
    "DueDate": null,
    "ExternalSystemName": null,
    "ExternalSystemUrl": null,
    "Tags": null,
    "ClassOfServiceId": null,
    "ExternalCardID": null,
    "AssignedUserIds": [],
    "AssignedUserId": 0
  },
  {
    "Id": 0,
    "LaneId": 306,
    "Title": "Test Card 1",
    "Description": null,
    "CreatedOn": null,
    "TypeName": null,
    "TypeId": 2,
    "Priority": 0,
    "Size": 12,
    "Active": false,
    "Version": 0,
    "IsBlocked": false,
    "BlockReason": null,
    "Index": 0,
    "DueDate": null,
    "ExternalSystemName": null,
    "ExternalSystemUrl": null,
    "Tags": null,
    "ClassOfServiceId": null,
    "ExternalCardID": null,
    "AssignedUserIds": [],
    "AssignedUserId": 0
  }
]

Example response:

{
  "ReplyCode": 201,
  "ReplyText": "The Cards were successfully updated.",
  "ReplyData": [{"UpdatedCardsCount":2}]
}

 

 

 

 

 

Doc ID: 1191979661

Have more questions? Submit a request