Management API
The Content Insight Management API can be used to add, update, delete and search documents within the Index Store
REST Services for managing document indexes
Insert Document
PUT
https://api.invariant.io/v1/document/index
This endpoint inserts a document and returns Document ID on successful insert.
Path Parameters
id
string
Unique ID of document to be uploaded
file
object
type = file; /path/to/file/to/be/uploaded
raw
string
JSON metadata as name value pair, e.g.{"id": "RAW-C00003", "documenttitle": "This is first title C", "dln": "DD1", "tax_year": "2019", "cust_type": "TP_TYPE_1", "classified_cd": "CLASS_CD_1", "conf_code": "CONF_CD_1", "mimetype": "application/json", "form_type_cd": "FORM_TYPE_CD_1", "ica_id": "CAPTURE_1", "notice_id": "NOTICE_1", "scan_id": "SCAN_PAGE_1", "scan_date": "2017-02-19", "effective_date": "2017-02-20", "expiration_date": "2021-02-19", "last_updated_date": "2018-12-10", "candelete": "Y", "document_class": "DOC_CLASS_1" }
Query Parameters
mediaType
string
The results to be returned as XML or JSON
Headers
authentication
string
Authentication token to track down who wants to view the documents.
Update document
POST
https://api.invariant.io/v1/document/update
This endpoint updates the document
Path Parameters
id
string
ID of the document to be updated
file
object
type = file /path/to/file/that/is/updated/
raw
string
JSON metadata as name value pair e.g.
{ "id": "RAW-C00004", "doctitle": "This is first title C Updated", "dln": "DD3", "tax_year": "2033", "tp_type": "TP_TYPE_3", "conf_code": "CONF_CD_3", "mimetype": "application/json", "form_type": "FORM_3", "ica_id": "CAPTURE_3", "scan_id": "SCAN_PAGE_3", "scan_date": "2017-02-13", "effective_date": "2017-02-23", "expiration_date": "2021-02-13", "last_updated_date": "2018-12-13", "candelete": "N", "document_class": "DOC_CLASS_3" }
Query Parameters
mediaType
string
The result to be returned as XML or JSON
Headers
authentication
string
Authentication token to update a document
Delete Document by ID
DELETE
https://api.invariant.io/v1/document/:id
This endpoint deletes document
Path Parameters
id
string
ID of the document to delete
Query Parameters
mediaType
string
The result to be returned as XML or JSON
Headers
authentication
string
Authentication token to delete the document
Search By ID
GET
https://api.invariant.io/v1/search/:id
This endpoint returns a document by ID.
Path Parameters
id
string
ID of the document to locate.
Query Parameters
mediaType
string
The results to be returned as XML or JSON
Headers
authentication
string
Authentication token to track down who wants to view the documents.
Full text document search with metadata filters
GET
https://api.invariant.io/v1/search/content
Path Parameters
dln
string
e.g. z89897878 The following string types are supported as filter params - id, documenttitle, dln, tax_year, tp_type, classified_cd, conf_code, form_type_cd, document_class
effective_date
string
e.g. 2010-06-30,2012-01-30 The date format is yyyy-MM-DD. The first date is the start date and the second date after the comma is end date. The date are inclusive so the search would be (effective_date >= 2010-06-30 and effective_date <= 2012-01-30) The following elements can be used in date range query - effective_date, last_update_date, expiration_date, scan_date
search_text
string
Text to be searched in the content database
Query Parameters
mediaType
string
The result to be returned as XML or JSON
Headers
authentication
string
The authentication token to track down who wants the view the documents
Last updated