Add New Category

POST/api/knowledge-base/categories

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
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 }
MethodPOST
Path/api/knowledge-base/categories
GroupKnowledge Base
Sincev1.0.0
Defined inRestApi/Controllers/KnowledgeBaseController.php