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": "58e13dd4-4494-4c66-846c-96799d7b6b07",
"OwnerTable": "sample string 2",
"ExpenseClaimApplicationItemId": "35b313da-0189-4af4-b97b-78f481ace1dc",
"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>58e13dd4-4494-4c66-846c-96799d7b6b07</AttachmentId> <AttachmentMethod>Database</AttachmentMethod> <AttachmentType>Normal</AttachmentType> <AttachmentUrl>sample string 9</AttachmentUrl> <ContentLength>7</ContentLength> <ContentType>sample string 6</ContentType> <ExpenseClaimApplicationItemId>35b313da-0189-4af4-b97b-78f481ace1dc</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:
"c5afdd15-a1df-4210-8ea7-6bfff80e3cd8"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c5afdd15-a1df-4210-8ea7-6bfff80e3cd8</guid>