POST api_v1/RecognitionPackages/CreatePackageAndRecognizeUsingDisk42

Создание пакета и последующее распознавание. Файлы берутся с хранилища Диск42

Request Information

Body Parameters

CreatePackageAndRecognizeUsingDisk42Model
NameDescriptionTypeAdditional information
RecognitionTemplatesTypes

string

None.

RecognizeUsingDemoLicenses

boolean

None.

RedirectUri

string

None.

SourceFiles

SourceFilesList

None.

OwnerID

globally unique identifier

None.

AccountID

globally unique identifier

None.

Request Formats

application/xml, text/xml

Sample:
<Request>
  <OwnerID>c1181faa-0a16-45b4-949d-8c61367db789</OwnerID>
  <AccountID>8404138c-1da2-4df9-8a2e-e61da4b149a9</AccountID>
  <RecognitionTemplatesTypes>sample string 1</RecognitionTemplatesTypes>
  <RecognizeUsingDemoLicenses>true</RecognizeUsingDemoLicenses>
  <RedirectUri>sample string 3</RedirectUri>
  <SourceFiles type="sample string 1">
    <Row>
      <Link>sample string 1</Link>
      <FileName>sample string 2</FileName>
    </Row>
    <Row>
      <Link>sample string 1</Link>
      <FileName>sample string 2</FileName>
    </Row>
  </SourceFiles>
</Request>

application/json, text/json

Sample:
{
  "RecognitionTemplatesTypes": "sample string 1",
  "RecognizeUsingDemoLicenses": true,
  "RedirectUri": "sample string 3",
  "SourceFiles": {
    "List": [
      {
        "Link": "sample string 1",
        "FileName": "sample string 2"
      },
      {
        "Link": "sample string 1",
        "FileName": "sample string 2"
      }
    ]
  },
  "OwnerID": "c1181faa-0a16-45b4-949d-8c61367db789",
  "AccountID": "8404138c-1da2-4df9-8a2e-e61da4b149a9"
}

Response Information

output может быть предоставлен в одном из следующих форматов:

  • json – задает вывод в формате JavaScript Object Notation (JSON)
  • xml – задает вывод в формате XML

Resource Description

RecognitionPackageIdDTO
NameDescriptionTypeAdditional information
RecognitionPackageId

globally unique identifier

None.

Response Formats

application/xml, text/xml

Sample:
<Result>
  <RecognitionPackageId>4b607c22-3766-4721-bfa3-ace5e4fc3c42</RecognitionPackageId>
</Result>

application/json, text/json

Sample:
{
  "RecognitionPackageId": "4b607c22-3766-4721-bfa3-ace5e4fc3c42"
}