Skip to main content
Planview Customer Success Center

Update an attachment

PUT /io/card/:cardId/attachment/:attachmentId

Update an attachment.

Example Request

The payload is a multipart/form-data payload with a description and file.

Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Length: 354

------WebKitFormBoundary7MA4YWxkTrZu0gW--,
Content-Disposition: form-data; name="description"

This is the description updated
------WebKitFormBoundary7MA4YWxkTrZu0gW--
Content-Disposition: form-data; name="file"; filename="sample.txt"
Content-Type: application/octet-stream

This is just a test doc updated.
------WebKitFormBoundary7MA4YWxkTrZu0gW--

Example Successful Response

202 Accepted

{
    "id": "947451120",
    "attachmentSize": 13,
    "createdBy": {
        "id": "478440842",
        "emailAddress": "user@leankit.com",
        "fullName": "First Last",
        "avatar": "https://myaccount.leankit.com/avatar/Show/478440842?s=25"
    },
    "changedBy": {
        "id": "478440842",
        "emailAddress": "user@leankit.com",
        "fullName": "First Last",
        "avatar": "https://myaccount.leankit.com/avatar/Show/478440842?s=25"
    },
    "createdOn": "2019-12-11T21:00:34Z",
    "updatedOn": "2019-12-11T23:22:12Z",
    "description": "This is the description 2",
    "name": "sample.txt",
    "storageId": "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
}



Updated 2020-01-22 @ 12:01 PM