For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Auto Classification Result

Endpoint Name: URL/access/klearstack/updateautoclassifyresult

Request type : POST

Authorization: Bearer token as header

Endpoint Details: The updateautoclassifyresult endpoint will be used to update the results of auto classification for the document.

Method

URL

POST

URL/access/klearstack/updateautoclassifyresult

Request Body

Params

Values

Required

Description

company_name

string

Yes

Name of the company for which the user is logging in

batch_id

string

Yes

Batch id received from 'autoclassify' api response

pagewise_classification

string

Yes

Modified json data which contains updated auto classification results by pages. sample data: [{"page_index": 1, "label": "Invoices"}, {"page_index": 2, "label": "PackingList"}, {"page_index": 3, "label": "PackingList"}]

Shell (cURL)

  • Request Body

curl --location "URL/access/klearstack/updateautoclassifyresult" \
  --header "Authorization: Bearer your_token_here" \
  --form "company_name=Replace_Company_Name_Here" \
  --form "batch_id=Replace_batch_id_Here" \
  --form "pagewise_classification=[{'page_index': 1, 'label': 'Invoices'}, {'page_index': 2, 'label': 'PackingList'}, {'page_index': 3, 'label': 'PackingList'}]" \

Python

  • Request Body

Java (OkHttp)

  • Request Body

Node.js (Axios)

  • Request Body

JavaScript (XHR)

  • Request Body

API Response

Status code

Example Response

200

400

{'status': 'fail', 'description': 'No existing classification result found for the provided batch_id'}

500

{'error': error}

400

{'status': 'fail', 'description': 'Failed to update auto classification result'}

Last updated