POST api/OcrFile

Request Information

URI Parameters

None.

Body Parameters

OcrFile
NameDescriptionTypeAdditional information
docId

integer

Required

docType

integer

None.

fileName

string

Required

fileExtension

string

Required

fileBinary

Collection of byte

Required

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "docId": 1,
  "docType": 2,
  "fileName": "sample string 3",
  "fileExtension": "sample string 4",
  "fileBinary": "QEA=",
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<OcrFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
  <docId>1</docId>
  <docType>2</docType>
  <fileBinary>QEA=</fileBinary>
  <fileExtension>sample string 4</fileExtension>
  <fileName>sample string 3</fileName>
</OcrFile>

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 'OcrFile'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.