Attachments Method

This method allows you to retrieve the information about the files stored in attachment column.

Parameters

table
the singular name of the table or its alias as returned by the Describe (Database) method. Please note that this parameter is embedded into the URL before the method name.
column
the name or an alias of the column to query. Please note that this parameter is embedded into the URL after the table name/alias.
key or id
the value of key column or internal record id to retrieve. You should supply either key or id but not both.
revisions
optional, default to 1, the number of revisions to report the information for. The column should have Allow See Revision History property checked to enable to access the information about previous revisions.

Request

GET https://www.teamdesk.net/secure/api/v2/{appid}/{table}/{column}/attachments.{json|xml} ?parameters 

Retrieve list of attachments from File column in a Test table from a record with id 56

GET https://www.teamdesk.net/secure/api/v2/21995/Test/File/attachments.json?id=56 

Response (JSON)

[
    {
        "name": "DSC02688.JPG",
        "revision": 2,
        "type": "image/jpeg",
        "size": 326133,
        "guid": "5c98ad47-c6ca-437d-8c2f-cb2f929c54b8",
        "author": "test user <test@test.com>",
        "created": "2014-12-03T18:02:31.787+02:00"
    }
    //, { ... }
]

Response (XML)

<Response>
    <attachment>
        <name>DSC02688.JPG</name>
        <revision>2</revision>
        <type>image/jpeg</type>
        <size>326133</size>
        <guid>5c98ad47-c6ca-437d-8c2f-cb2f929c54b8</guid>
        <author>Kirill Bondar &lt;kir@skyeytech.com&gt;</author>
        <created>2014-12-03T18:02:31.787+02:00</created>
    </attachment>
    <!-- more revisions -->
</Response>