PUT api/Import/{clientID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientID

integer

Required

Body Parameters

ImportModel
NameDescriptionTypeAdditional information
FileData

Collection of byte

None.

HasHeader

boolean

None.

BaseURL

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FileData": "QEA=",
  "HasHeader": true,
  "BaseURL": "sample string 2"
}

application/xml, text/xml

Sample:
<ImportModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Import">
  <BaseURL>sample string 2</BaseURL>
  <FileData>QEA=</FileData>
  <HasHeader>true</HasHeader>
</ImportModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ImportModel'.

Response Information

Resource Description

ImportResponseModel
NameDescriptionTypeAdditional information
RowsImportedCount

integer

None.

RowsRejectedCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "RowsImportedCount": 1,
  "RowsRejectedCount": 2
}

application/xml, text/xml

Sample:
<ImportResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Import">
  <RowsImportedCount>1</RowsImportedCount>
  <RowsRejectedCount>2</RowsRejectedCount>
</ImportResponseModel>