POST api/LodgementClient/UploadFile

Request Information

URI Parameters

None.

Body Parameters

LodgementVM
NameDescriptionTypeAdditional information
FileName

string

None.

FileContent

Collection of byte

None.

LodgementImportFileModel

FileModel

None.

Response

IResponse

None.

Request Formats

application/json, text/json

Sample:
{
  "FileName": "sample string 1",
  "FileContent": "QEA=",
  "LodgementImportFileModel": {
    "FileDetails": [
      {
        "ColumnName": "sample string 1",
        "ColumnType": "sample string 2",
        "IsMandatory": true
      },
      {
        "ColumnName": "sample string 1",
        "ColumnType": "sample string 2",
        "IsMandatory": true
      }
    ]
  },
  "Response": null
}

application/xml, text/xml

Sample:
<LodgementVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.ViewModels.Lodgments">
  <Response i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.ViewModels" />
  <FileContent>QEA=</FileContent>
  <FileName>sample string 1</FileName>
  <LodgementImportFileModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.Models.File">
    <d2p1:FileDetails>
      <d2p1:FileDetailModel>
        <d2p1:ColumnName>sample string 1</d2p1:ColumnName>
        <d2p1:ColumnType>sample string 2</d2p1:ColumnType>
        <d2p1:IsMandatory>true</d2p1:IsMandatory>
      </d2p1:FileDetailModel>
      <d2p1:FileDetailModel>
        <d2p1:ColumnName>sample string 1</d2p1:ColumnName>
        <d2p1:ColumnType>sample string 2</d2p1:ColumnType>
        <d2p1:IsMandatory>true</d2p1:IsMandatory>
      </d2p1:FileDetailModel>
    </d2p1:FileDetails>
  </LodgementImportFileModel>
</LodgementVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ActionResultVM
NameDescriptionTypeAdditional information
Response

IResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": null
}

application/xml, text/xml

Sample:
<ActionResultVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.ViewModels">
  <Response i:nil="true" />
</ActionResultVM>