Jump to: navigation, search
Knowledge Base Operations
The Knowledge Base Operations API lets you explore how many categories your knowledge bases contain, what the categories are, and what specific articles are contained in a knowledge base.
Authorization
The operations carried out by the Knowledge Base Operations API can be accessed by all roles.
Complex Types
DocumentEntry Complex Type
Field | Type | Description |
---|---|---|
id | String | Unique document ID |
kbId | String | Knowledge base ID |
language | String | Document language |
url | String | External URL associated with this document |
media | String[] | List of media types associated with this document |
tags | String[] | List of tags associated with this document |
categories | String[] | List of categories associated with this document |
created | Date | Document creation date, represented as a string in the format of "yyyy-MM-dd HH:mm:ss" |
modified | Date | Document modification date, represented as a string in the format of "yyyy-MM-dd HH:mm:ss" |
customFields | Map<String, Object> | Set of custom field values |
question | String | FAQ question |
answer | String | FAQ answer |
ScoredDocumentEntry Complex Type
Field | Type | Description |
---|---|---|
All the fields of DocumentEntry | ||
score | Float | Relevancy score of document against particular search request obtained by core functionality |
ConfidentDocumentEntry Complex Type
Field | Type | Description |
---|---|---|
All the fields of ScoredDocumentEntry | ||
confidence | Float | Confidence level of content against particular query |
Pagination Complex Type
Field | Type | Description |
---|---|---|
from | int | Page offset |
size | int | Page size |
CategoryFacetItem
Field | Type | Description |
---|---|---|
id | String | Category Identifier |
count | int | Count of categories with this id in obtained document selection |
Retrieve a List of Supported Knowledge Bases
Description | Retrieves a list of supported knowledge bases that the user or agent identified by the http header of gkc_agentId may access. | |||||||||||||||
URL | /kbs/ | |||||||||||||||
Method | GET | |||||||||||||||
Request Content-Type | — | |||||||||||||||
Response Content-Type | application/json | |||||||||||||||
Role | Any | |||||||||||||||
URL Identifiers | None | |||||||||||||||
URL Parameters |
| |||||||||||||||
Request | Empty | |||||||||||||||
Response |
|
Retrieve Knowledge Base Information
Description | Retrieves information about a specific knowledge base (including supported languages) | ||||||||||
URL | /kbs/{kbId} | ||||||||||
Method | GET | ||||||||||
Request Content-Type | — | ||||||||||
Response Content-Type | application/json | ||||||||||
Role | Any | ||||||||||
URL Identifiers |
| ||||||||||
URL Parameters |
| ||||||||||
Request | Empty | ||||||||||
Response | KnowledgeBaseMeta |
Get Knowledge Base Document Categories
Category Complex Type
Field | Type | Description |
---|---|---|
id | String | Unique category ID |
name | String | Category name |
Get Knowledge Base Document Categories
Description | Returns a list of categories | |||||||||||||||
URL | /kbs/{kbId}/categories | |||||||||||||||
Method | GET | |||||||||||||||
Request Content-Type | — | |||||||||||||||
Response Content-Type | application/json | |||||||||||||||
Role | Any | |||||||||||||||
URL Identifiers |
| |||||||||||||||
URL parameters |
| |||||||||||||||
Request | Empty | |||||||||||||||
Response |
|
Get Knowledge Base Documents Associated With A Given Category
Description | Returns all document previews for the specified category | |||||||||||||||||||||||||
URL | /kbs/{kbId}/{catId}/documents | |||||||||||||||||||||||||
Method | GET | |||||||||||||||||||||||||
Request Content-Type | — | |||||||||||||||||||||||||
Response Content-Type | application/json | |||||||||||||||||||||||||
Role | Any | |||||||||||||||||||||||||
URL Identifiers |
| |||||||||||||||||||||||||
URL parameters |
| |||||||||||||||||||||||||
Request | Empty | |||||||||||||||||||||||||
Response |
|
Get Top X Trending Documents
Description | Returns the top X trending documents | ||||||||||||||||||||
URL | /kbs/{kbId}/top | ||||||||||||||||||||
Method | GET | ||||||||||||||||||||
Request Content-Type | — | ||||||||||||||||||||
Response Content-Type | application/json | ||||||||||||||||||||
Role | Any | ||||||||||||||||||||
URL Identifiers |
| ||||||||||||||||||||
URL parameters |
| ||||||||||||||||||||
Request | Empty | ||||||||||||||||||||
Response |
|
Get Full Contents Of Document
DocumentContentEntry Complex Type
Field | Type | Description |
---|---|---|
All the fields of DocumentEntry | ||
answerContentType | String | Content type for rich rendering content of answer from field answerContent |
answerContent | String | May contain content of answer in rich markup format, for instance in form of “text/html” |
attachments | String [] | List of urls of attachments that are related to this document. |
Get full contents of the specified document
Description | Returns the full content of the specified document | |||||||||||||||
URL | /kbs/{kbId}/documents/{docId} | |||||||||||||||
Method | GET | |||||||||||||||
Request Content-Type | — | |||||||||||||||
Response Content-Type | application/json | |||||||||||||||
Role | Any | |||||||||||||||
URL Identifiers |
| |||||||||||||||
URL parameters |
| |||||||||||||||
Request | Empty | |||||||||||||||
Response | DocumentEntry |
This page was last edited on August 28, 2015, at 21:42.
Comments or questions about this documentation? Contact us for support!