Add New Article

POST/api/knowledge-base/articles

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
title String Mandatory Article title
category_id Number Mandatory Help category ID, must exist
description String optional Optional Article body
status String optional Optional active or inactive, defaults to active
sort Number optional Optional sort order, defaults to 0
labels String optional Optional comma separated label IDs
related_article_ids String optional Optional comma separated article IDs
created_by Number optional Optional user ID to attribute the record to
curl -X POST "https://yoursite.com/api/knowledge-base/articles" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "title": "...", "category_id": "..." }'

Success-Response:

HTTP/1.1 201 Created
{ "status": 200, "messages": {"success": "The record has been saved."}, "id": 12 }
MethodPOST
Path/api/knowledge-base/articles
GroupKnowledge Base
Sincev1.0.0
Defined inRestApi/Controllers/KnowledgeBaseController.php