Index
Get Index
GET [ENADOC_URL] /api/v3/indexes
Pre-requisites from Enadoc: You must have created indexes under any of the accessible libraries.
Headers
Authorization
string
Type - Bearer Access token will be sent in request headers
{
"id": 1,
"name": "Document Type",
"libraryId": 1,
"type": 2,
"length": 100,
"isMandatory": false,
"isInherited": false,
"order": "0,0,0",
"isSuperIndex": false,
"superIndexId": 0,
"defaultValue": "1",
"isPredictionEnabled": false,
"searchCriteria": "Equal"
}Get Indexes of the Specific Library
GET [ENADOC_URL] /api/v3/libraries/{library id}/indexes
Pre-requisites from Enadoc: You must have created indexes under any of the accessible libraries.
Path Parameters
library id
integer
Library Id
Headers
Authorization
string
Type - Bearer Access token will be sent in request headers
Get Specific Index
Get Specific Index
GET [ENADOC_URL] /api/v3/indexes/{indexId}
Pre-requisites from Enadoc: You must have created indexes under any of the accessible libraries.
Path Parameters
indexId
integer
Index Id
Headers
Authorization
string
Type - Bearer Access token will be sent in request header
Index Reference
Pre-requisites from Enadoc: You must have created dropdown indexes and reference values under these drop-down indexes.
Enadoc contains drop-down indexes, here we can consume two types of indexes values, there are parent index & child index. parent index can have reference values without any inheritance, child index will have inherited index reference value, here we have defined all endpoints that you can get these reference values.
Get Index Reference
GET [ENADOC_URL] /api/v3/indexes/{indexId}/references
Get parent index reference values, here we can obtain references where when index has superIndexId:0, other index reference values can be obtained using another end point
Path Parameters
indexId
integer
Index Id
Headers
Authorization
string
Type - Bearer Access token will be sent in request headers
Get Index Reference Children
GET [ENADOC_URL] /api/v3/indexes/references/{id}/children
Use this method to get inherited index reference values, if that index is an inherited one
Path Parameters
id
integer
Parent index reference id
Headers
Authorization
string
Type - Bearer Access token will be sent in request headers
Create a New Index Reference
POST [ENADOC_URL] /api/v3/indexes/{indexId}/references
Here we can create a new index reference for drop down indexes, if index is inherited index server required to send parent index reference id. If index is not inherited, then not required parent index reference id. It can send as 0 value or null.
Path Parameters
indexId
integer
Index Id
Headers
Authorization
string
Type - Bearer Access token will be sent in request headers
Request Body
Reference details
object
Content type - application JSON Request body should contain the index reference details. Follow the format given in the code block below. ⤵️
Follow the format given in the code block to send the flag as the body parameters of the API request.
Edit Index Reference
PUT [ENADOC_URL] /api/v3/indexes/references/{id}
Here we can edit index reference of drop-down indexes.
Path Parameters
id
integer
Index reference id
Headers
Authorization
string
Type - Bearer Access token will be sent in request headers
Request Body
Reference details
object
Content type - Application/Json Request body should consists of the new values of index reference details. Follow the format given in the code block below. ⤵️
Follow the format given in the code block to send the new values for index reference as the body parameter of the API request.
Update Default Index Reference
PUT [ENADOC_URL] /api/v3/indexes/references/{ref_id}/$default
Here we can update index reference value as default.
Path Parameters
ref_id
integer
Index Reference Id
Headers
Authorization
string
Type - Bearer Access token will be sent in request header
Request Body
Default status
object
Content type - Application/Json Request body should contain of the index reference status. Follow the format given in the code block below.
Follow the below format given in the code block to send the flag as the body parameters of the API request.
Delete Index Reference
DELETE [ENADOC_URL] /api/v3/indexes/references/{id}
This method is to delete index reference
Path Parameters
id
string
Index reference id
Headers
Authorization
string
Type - Bearer Access token will be sent in request headers
Last updated
Was this helpful?