Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status Code

Description

400 (Bad Request)

Returned when a file is sent in an invalid format.

401 (Unauthorized)

Authorization credentials are either missing, wrong or outdated.

415

Content type is not supported.

503

Service unavailable. Please retry Try again later.

...

Upload a document page by page

...

Pages that are part of the document are referred to as partial documents. If you want to upload a page (or a page picture) that belongs to the document, your request header should additionally include Content-Type field with application/vnd.gini.v1.partial+png value or application/vnd.gini.v1.partial+pdf in case of PDF page.

...

Status Code

Description

400 (Bad Request)

Returned when the sent file has invalid format.

401 (Unauthorized)

Authorization credentials are either missing, wrong or outdated.

415

Content type is not supported.

503

Service unavailable. Please retry Try again later.

Step 2 (upload JSON as a composite document)

...

Status Code

Description

400 (Bad Request)

Returned when a file in an invalid format is sent

401 (Unauthorized)

Authorization credentials are either missing, wrong or outdated.

415

content type not supported.

503

Service unavailable. Please retry Try again later.