POST api/List/{listId}/Item/{id}/Email/Attachment/{attachmentIndex}
Gets an attachment from the email file, for the specified item id, on the given listId.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| listId |
The id of the list. |
string |
Required |
| id |
The id of the list item. |
integer |
Required |
| attachmentIndex |
The index of the attachment in the list of attachments on the email. |
string |
Required |
Body Parameters
An optional parameter. The index of the parent attachment in the list of attachments on the email.
stringRequest Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Response Information
Resource Description
Returns the attachment file object.
VestConsult.SharePoint.WorkPoint.API.Model.File| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| UniqueId | globally unique identifier |
None. |
|
| FileBytes | string |
None. |
|
| FileName | string |
None. |
|
| Length | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"UniqueId": "238cc083-c34a-434c-9526-d0c619f4bb5e",
"FileBytes": "sample string 3",
"FileName": "sample string 4",
"Length": 5
}
application/xml, text/xml
Sample:
<File xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.workpoint.dk/API"> <FileBytes>sample string 3</FileBytes> <FileName>sample string 4</FileName> <Id>1</Id> <Length>5</Length> <UniqueId>238cc083-c34a-434c-9526-d0c619f4bb5e</UniqueId> </File>