Add New Category
POST/api/knowledge-base/categories
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| title | String | Mandatory Category title |
| type | String | Mandatory knowledge_base or help |
| description | String | optional Optional Category description |
| status | String | optional Optional active or inactive, defaults to active |
| sort | Number | optional Optional sort order, defaults to 0 |
| articles_order | String | optional Optional A-Z or Z-A |
| banner_url | String | optional Optional banner link |
| related_articles | String | optional Optional comma separated label IDs used to build the related list |
curl -X POST "https://yoursite.com/api/knowledge-base/categories" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "title": "...", "type": "..." }' Success-Response:
HTTP/1.1 201 Created
{ "status": 200, "messages": {"success": "The record has been saved."}, "id": 3 }