Approve or Reject a Document

Endpoint Name: approve_reject_doc

Request type : POST

Authorization: Bearer token as header

Endpoint Details: The approve_reject_doc endpoint will be used to approve or reject a document.

Method

URL

POST

URL/access/klearstack/approve_reject_doc

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

approve_reject

string

Two possible values “approve” and “reject”.

comment

string

Comment for approving or rejecting the document.

API Response

Status code

Example Response

200

{

"success": "Document updated successfully",

“release_version”:”7.8.9”

}

400

{

"error": "Document is already rejected"

}

{

"error": "Document is already approved"

}

Last updated