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

NameDescriptionTypeAdditional 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.

string

Request 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
NameDescriptionTypeAdditional 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": "2b0e0c74-ca2d-4311-b190-5cc1af742d76",
  "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>2b0e0c74-ca2d-4311-b190-5cc1af742d76</UniqueId>
</File>