POST api/List/{listId}/Item/{id}/Email/AttachmentAsEmail/{attachmentIndex}

Gets an attachment as an email object 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 as an email object.

VestConsult.SharePoint.WorkPoint.API.Model.Email
NameDescriptionTypeAdditional information
ConversationID

string

None.

To

Collection of string

None.

From

string

None.

Cc

Collection of string

None.

Subject

string

None.

Date

date

None.

Body

string

None.

ParentAttachmentIndex

string

None.

Attachments

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "ConversationID": "sample string 1",
  "To": [
    "sample string 1",
    "sample string 2"
  ],
  "From": "sample string 2",
  "Cc": [
    "sample string 1",
    "sample string 2"
  ],
  "Subject": "sample string 3",
  "Date": "2024-05-15T08:44:22.4821177+00:00",
  "Body": "sample string 5",
  "ParentAttachmentIndex": "sample string 6",
  "Attachments": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Email xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.workpoint.dk/API">
  <Attachments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Attachments>
  <Body>sample string 5</Body>
  <Cc xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Cc>
  <ConversationID>sample string 1</ConversationID>
  <Date>2024-05-15T08:44:22.4821177+00:00</Date>
  <From>sample string 2</From>
  <ParentAttachmentIndex>sample string 6</ParentAttachmentIndex>
  <Subject>sample string 3</Subject>
  <To xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </To>
</Email>