Update Document

Endpoint Name: update_document

Request type : POST

Authorization: Bearer token as header

Endpoint Details: The update_documentendpoint will be used to update the document.

Method

URL

POST

URL/access/klearstack/update_document

Request Body

Params

Values

Description

company_name

string

Name of the company for which the user is logging in

collection_name

string

Name of collection of document

id

string

ID of document

data

string(JSON)

A valid JSON string containing details of updates to be done to fields of Document.

If coordinates are not available then array will [0,0,0,0]

Example :

{ "doc_date_value": {

"_value": "02-Oct-2022",

"_coordinates": [1306,87,1444,107],

},

"doc_number_value": {

"_value": "287269549621X10102022",

"_coordinates": [1306,87,1444,107],

},

}

API Response

Status code

Example Response

200

Json Response

Last updated