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": "e3f2e280-0539-4c3a-a0b4-7c5638a1605c",
"OwnerTable": "sample string 2",
"ExpenseClaimApplicationItemId": "9e0b94fd-cc46-4ae5-9730-7502ba2add49",
"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>e3f2e280-0539-4c3a-a0b4-7c5638a1605c</AttachmentId> <AttachmentMethod>Database</AttachmentMethod> <AttachmentType>Normal</AttachmentType> <AttachmentUrl>sample string 9</AttachmentUrl> <ContentLength>7</ContentLength> <ContentType>sample string 6</ContentType> <ExpenseClaimApplicationItemId>9e0b94fd-cc46-4ae5-9730-7502ba2add49</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:
"db3e44fb-b79d-4aec-82b6-33fecf95171a"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">db3e44fb-b79d-4aec-82b6-33fecf95171a</guid>