Help & Support
Follow

LeanKit API: Get a List of Attachments

This method retrieves information about the file attachments for a Card. AttachmentSize is the size of the attachment in kilobytes.

Request URL (GET):

https://{accountname}.leankit.com/kanban/api/card/GetAttachments/{boardId}/{cardId}

Sample request:

https://myaccount.leankit.com/kanban/api/card/GetAttachments/101000/101622

Sample response:

{
  "ReplyData": [
    [
      {
        "Id": 256819669,
        "FileName": "Important Document.pdf",
        "Description": "Description of really important document",
        "CreatedOn": "10/15/2015 at 11:57:06 AM",
        "LastModified": "10/15/2015 at 11:57:06 AM",
        "StorageId": "0e4a503f-40e3-4740-a2fe-b8b32d781361",
        "AttachmentSize": 213,
        "CardId": 256817369,
        "CreatedById": 62984826,
        "CreatedByFullName": "David Neal",
        "LastModifiedById": 0,
        "LastModifiedByFullName": "",
        "Stream": null,
        "GravatarLink": "3ab1249be442027903e1180025340b3f"
      },
      {
        "Id": 256726314,
        "FileName": "data file.csv",
        "Description": "The data we need to discuss",
        "CreatedOn": "10/15/2015 at 11:57:52 AM",
        "LastModified": "10/15/2015 at 11:57:52 AM",
        "StorageId": "39d45036-5392-4ddc-9a98-4842a8f78a1c",
        "AttachmentSize": 234,
        "CardId": 256817369,
        "CreatedById": 62984826,
        "CreatedByFullName": "David Neal",
        "LastModifiedById": 0,
        "LastModifiedByFullName": "",
        "Stream": null,
        "GravatarLink": "3ab1249be442027903e1180025340b3f"
      }
    ]
  ],
  "ReplyCode": 200,
  "ReplyText": null
}

 

 

 

 

 

 

Doc ID: 1191983334

Have more questions? Submit a request