POST api/EMM/Email/{conversationID}/AttachmentAsEmail/{attachmentIndex}

Gets the attachment as an email for specified attachmentindex on the email with the given conversationID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
conversationID

The coversation id of the email

string

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 as a 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-12-27T19:20:03.800869+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-12-27T19:20:03.800869+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>