POST api/feedback/{referenceNo}/attachments
Saves attachment against reference no provided in attachment request
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| referenceNo | string |
None. |
Body Parameters
Object contains case id and attachment details
FileAttachmentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ObjectId |
Gets or sets Object Id for attachment entity |
integer |
None. |
| Attachments |
Gets or sets Attachments |
Collection of Attachment |
None. |
| EntityType |
Entity type for which request is submitted |
EntityType |
None. |
Request Formats
application/json, text/json
Sample:
{
"objectId": 1,
"attachments": [
{
"fileId": 1,
"name": "sample string 2",
"fileType": "sample string 3",
"fileSize": 1,
"fileData": "sample string 4",
"description": "sample string 5",
"fileMark": 0
},
{
"fileId": 1,
"name": "sample string 2",
"fileType": "sample string 3",
"fileSize": 1,
"fileData": "sample string 4",
"description": "sample string 5",
"fileMark": 0
}
],
"entityType": 0
}
application/xml, text/xml
Sample:
<FileAttachmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
<Attachments>
<Attachment>
<Description>sample string 5</Description>
<FileData>sample string 4</FileData>
<FileId>1</FileId>
<FileMark>MarkedAsOriginal</FileMark>
<FileSize>1</FileSize>
<FileType>sample string 3</FileType>
<Name>sample string 2</Name>
</Attachment>
<Attachment>
<Description>sample string 5</Description>
<FileData>sample string 4</FileData>
<FileId>1</FileId>
<FileMark>MarkedAsOriginal</FileMark>
<FileSize>1</FileSize>
<FileType>sample string 3</FileType>
<Name>sample string 2</Name>
</Attachment>
</Attachments>
<EntityType>Booking</EntityType>
<ObjectId>1</ObjectId>
</FileAttachmentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns true on successful completion of routine.
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>