Knowledge Document API
Product: NEXTMEGABYTE (Greenitco ITAM) · Module: API Documentation · Audience: Developer, Administrator
This page lists the NEXTMEGABYTE REST API endpoints for knowledge documents. All URLs are relative to your portal, for example https://your-domain.com/api/.... Authenticate first with the Login API and send the standard headers described in the API Overview. Example values are shortened and anonymized.
Get a knowledge article
POST /api/knowledge_document/document/ajaxArticleDetails
Returns the content and details of a knowledge article.
Headers: standard authenticated headers (apptoken, token, Content-Type: application/x-www-form-urlencoded). See API Overview.
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | int | Yes | id |
Example request
{
"id": "<string>"
}
Example response (shortened)
{ "status": "success", "msg": "", "data": { "id": 2, "title": "As a project manager, the weight of reaching deadlines and motivating your team falls on your shoulders.", "content": "Article 2", "category": "New Ticket", "tags": "2", "created_at_format": "06 Sep 2021 01:09 PM", "updated_at_format": "06 Jan 2023 12:02 PM" }, "tags": [ { "tags": "Tag2" } ] }
List knowledge articles
POST /api/knowledge_document/document/jx-document-list
Returns a paged, filterable list of knowledge articles.
Headers: standard authenticated headers (apptoken, token, Content-Type: application/x-www-form-urlencoded). See API Overview.
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| index | int | Yes | index of list |
| search | string | Yes | search |
| filters[tag] | string | Yes | filter by tag |
| filters[status_access] | string | Yes | filter by status |
Example request
{
"index": "<string>",
"search": "<string>",
"filters[tag]": "<string>",
"filters[status_access]": "<string>"
}
Example response (shortened)
\`\`\`json { "total": 112, "filtered": 112, "data": [ { "id": 2, "title": "As a project manager, the weight of reaching deadlines and motivating your team falls on your shoulders.", "created_at": "2021-09-06 13:09:09", "category_name": "Category1", "content": "Article 2", "updated_at": "2023-01-06 12:02:14", "card_img": null, "tags": "2", "dep_name": null, "status": 1, "created_by": null, "starred …
Get tags
GET /api/ticket/getTagDetails
Returns the tags that can be added to tickets or knowledge articles.
Headers: standard authenticated headers (apptoken, token, Content-Type: application/x-www-form-urlencoded). See API Overview.
Top-level response fields: status, msg, tot, data
Example response (values shortened and anonymized)
{
"status": "success",
"msg": "Tags fetched successfully",
"tot": 48,
"data": [
{
"id": 1,
"text": "<string>"
},
"..."
]
}