Library
Get All Libraries
GET [ENADOC_URL] /api/v3/libraries
Pre-requisites from Enadoc: You must have created libraries under your Enadoc organization The request headers consist of access token and Request body is not required here.
Headers
Authorization
string
Type : Bearer Access token should be sent in request headers
[{
"id":1,
"name":"General",
"color":"ff4366"
},
{
"id":2,
"name":"HR",
"color":"7da7d9"
}]Get Specific Library
GET [ENADOC_URL]/api/v3/libraries/{libraryId}
Use this API to get the details of a specific library that user can access
Path Parameters
libraryId
integer
ID of the library
Headers
Authorization
string
Type : Bearer Access token should be sent in request headers
Errors
Error code
Error
Error description
Reason
003.000
No accessible libraries
User has no accessible libraries
No libraries assigned to requested user or
No libraries created
003.001
Invalid library id
Library id is invalid
Sent invalid library id by requester
003.002
Inactive library
Library is inactive
Library status is inactive
Get Tag Profiles from a Library
GET [ENADOC_URL]/api/v3/libraries/{libraryId}/tagprofiles
Tag profiles are required to upload documents from different security levels and document permissions
Path Parameters
libraryId
integer
Library ID
Headers
Authorization
string
Type : Bearer Access token should be sent in request headers
Errors
Error code
Error
Error description
Reason
003.000
No accessible libraries
User has no accessible libraries
No libraries assigned to requested user or
No libraries created
003.001
Invalid library id
Library id is invalid
Sent invalid library id by requester
003.002
Inactive library
Library is inactive
Library status is inactive
Get Flags from a Library
GET [ENADOC_URL]/api/v3/libraries/{libraryId}/flags
Pre-requisites from Enadoc: You must have created flag/s under requested library. Flags are used to search documents in Enadoc tag cloud.
Path Parameters
libraryId
integer
Library ID
Headers
Authorization
string
Type : Bearer Access token should be sent in request headers
Get Specific Flag from Library
GET [ENADOC_URL]/api/v3/libraries/{libraryId}/flags/{flagId}
Pre-requisites from Enadoc - You must have created flags under requested library.
Path Parameters
libraryId
integer
Library ID
flagId
integer
Flag ID
Headers
Authorization
string
Type: Bearer Access token should be sent in request headers
Create New Flag for Library
POST [ENADOC_URL]/api/v3/libraries/{libraryId}/flags
Pre-requisites from Enadoc - You must have created libraries in your Enadoc organization.
Path Parameters
libraryId
integer
Library Id
Headers
Authorization
string
Type- Bearer Access token should be sent in request headers
Request Body
flag
string
Type - Application JSON Request body should contain the flag. Follow the format given in the code block below.
Follow the format given in the code block to send the flag as the body parameter of API request.
Get All User Tags from Library
GET [ENADOC_URL]/api/v3/libraries/{libraryId}/usertags
Pre-requisites from Enadoc - You must have created user tags under the given library. User tags used to search documents in Enadoc tag cloud.
Path Parameters
libraryId
integer
Library Id
Headers
Authorization
string
Type: Bearer Access token should be sent in request headers
Get Specific User Tag from Library
GET [ENADOC_URL]/api/v3/libraries/{libraryId}/usertags/{userTagId}
Pre-requisites from Enadoc - You must have created the requested user tags under given library.
Path Parameters
libraryId
integer
Library Id
userTagId
integer
User Tag Id
Headers
Authorization
string
Type- Bearer Access token should be sent in request headers
Create User Tags
POST [ENADOC_URL]api/v3/libraries/{libraryId}/usertags
Pre-requisites from Enadoc - You must have created libraries in your Enadoc organization
Path Parameters
libraryId
integer
Library Id
Headers
Authorization
string
Type - Bearer Access token should be sent in requests headers
Request Body
userTag *
string
Content Type- Application/JSON Request Body should contain user tag. Follow the format given in the code block below Ex: "UserTag_Department"
Follow the format given in the code block to send the user tag as the body parameter of API request.
Index Search
POST [ENADOC_URL]api/v3/libraries/{libraryId}/documents/$search
Pre-requisites from Enadoc - You must have uploaded documents in the given library. Advanced search is functioning here. You can search documents from the specific library by index with values. Each search will have hundred results count. Default 1 to 100 results will be sent this end point.
Path Parameters
libraryId
integer
Library Id
Query Parameters
from
integer
Start point of results
to
integer
End point of results
Headers
Authorization
string
Type - Bearer Access token should be sent in the request headers
Request Body
Search Indexes
object
Content type - Application/JSON, Request body should contain index value filters. Follow the format given in the code block below ⤵️
Follow the format given in the code block to send the index value filters as the body parameter of API request.
Last updated
Was this helpful?