POST api/{version}/Attachment
Pretty sure this isn't being called from anywhere. The O365 and Gmail web add-ins use UploadConfigController to retrieve a configuration so they can add attachments.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| version | string |
None. |
Body Parameters
AddAttachmentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| EmailId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Size | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"EmailId": "d5afe634-9175-4240-a872-838eb73ffc13",
"Name": "sample string 2",
"Size": 3
}
application/xml, text/xml
Sample:
<AddAttachmentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models.Attachments"> <EmailId>d5afe634-9175-4240-a872-838eb73ffc13</EmailId> <Name>sample string 2</Name> <Size>3</Size> </AddAttachmentModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |