{{getMsg('Help_YouAreHere')}}:
/
{{page.title}}
{{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}}
{{helpModel.downloadHelpPdfDataStatus}}
Attachments
Request a list of attachments in a message.
GET /api/cowork/teams/<teamID>/channels/<channelID>/messages/<messageID>/attachments
Returns a list of attachments in a message using the following form:
[ { "id": "<ID of the attachment>", "name": "<Name of the attachment file>", "properties": [ <timestamp of modification date and time> ] }, ... ]
RESPONSE Fields | Value Type | Description |
---|---|---|
id | String | The GUID of the attachment, used for details and further operations |
name | String | The attachment file name |
properties | Map | A key / value map of additional properties that may be attached to the file |
Example Request
# Request # Use user:password for authorization GET /api/cowork/teams/3n1ytbwme7ngfyn9g9guwwurt/channels/epmlsh7trr535mrs9z7xcfn1w/messages/00kunwfaycw5sqp8gc8kc0jms/attachments HTTP/1.1 Accept: */* Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response HTTP/1.1 200 OK Content-Type: application/json [ { "id": "00kunwfaycw5sqp8gc8kc0jms", "name": "funny picture.gif", "properties": [] }, ... ]