Add New Article
POST/api/knowledge-base/articles
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| 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 }