POST api/Claim/UploadAttachment
Request Information
URI Parameters
None.
Body Parameters
Attachment| Name | Description | Type | Additional information |
|---|---|---|---|
| AttachmentId | globally unique identifier |
None. |
|
| OwnerTable | string |
None. |
|
| ExpenseClaimApplicationItemId | globally unique identifier |
None. |
|
| AttachmentMethod | AttachmentMethod |
None. |
|
| AttachmentType | AttachmentType |
None. |
|
| FileName | string |
None. |
|
| FilePath | string |
None. |
|
| ContentType | string |
None. |
|
| ContentLength | integer |
None. |
|
| FileContent | Collection of byte |
None. |
|
| UploadTempFilePath | string |
None. |
|
| AttachmentUrl | string |
None. |
|
| AllowEdit | boolean |
None. |
|
| ShowAttachmentImage | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"AttachmentId": "0b832008-8834-4386-af7a-ceaae6649862",
"OwnerTable": "sample string 2",
"ExpenseClaimApplicationItemId": "ad893841-4b86-4bbc-8e30-1df6d2be4efd",
"AttachmentMethod": 1,
"AttachmentType": 1,
"FileName": "sample string 4",
"FilePath": "sample string 5",
"ContentType": "sample string 6",
"ContentLength": 7,
"FileContent": "QEA=",
"UploadTempFilePath": "sample string 8",
"AttachmentUrl": "sample string 9",
"AllowEdit": true,
"ShowAttachmentImage": false
}
application/xml, text/xml
Sample:
<Attachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MAT.App.eClaim.API.Models"> <AllowEdit>true</AllowEdit> <AttachmentId>0b832008-8834-4386-af7a-ceaae6649862</AttachmentId> <AttachmentMethod>Database</AttachmentMethod> <AttachmentType>Normal</AttachmentType> <AttachmentUrl>sample string 9</AttachmentUrl> <ContentLength>7</ContentLength> <ContentType>sample string 6</ContentType> <ExpenseClaimApplicationItemId>ad893841-4b86-4bbc-8e30-1df6d2be4efd</ExpenseClaimApplicationItemId> <FileContent>QEA=</FileContent> <FileName>sample string 4</FileName> <FilePath>sample string 5</FilePath> <OwnerTable>sample string 2</OwnerTable> <UploadTempFilePath>sample string 8</UploadTempFilePath> </Attachment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"0cc409c2-f30b-43b6-8b80-38e72ce74bcd"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0cc409c2-f30b-43b6-8b80-38e72ce74bcd</guid>