curl --location --request PUT 'https://www.pacekb.com/api/v2/categories' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
    "name": "Getting Started",
    "slug": "getting-started",
    "priority": 0,
    "categoryParent": "<id>",
    "description": "How to get started with your PaceKB Knowledge Base",
    "longDescription": "<h1>Getting started is easy with PaceKB. Here is how you can do it:</h1>",
    "thumbnailUrl": "https://pacekb.com/thumbnail.jpg",
    "iconUrl": "https://pacekb.com/icon.svg"
}'
{
  "success": true,
  "message": "Getting Started has been created"
}

Body

name
string
required
Name of category
slug
string
required
Slug of category
priority
number
required
Ordering priority of article
categoryParent
string
ID of category parent
description
string
Description of category
longDescription
string
HTML-supported description of category
thumbnailUrl
string
URL of thumbnail image
iconUrl
string
URL of icon image

Response

success
boolean
Indicates whether the call was successful.
message
string
Success/error message
curl --location --request PUT 'https://www.pacekb.com/api/v2/categories' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
    "name": "Getting Started",
    "slug": "getting-started",
    "priority": 0,
    "categoryParent": "<id>",
    "description": "How to get started with your PaceKB Knowledge Base",
    "longDescription": "<h1>Getting started is easy with PaceKB. Here is how you can do it:</h1>",
    "thumbnailUrl": "https://pacekb.com/thumbnail.jpg",
    "iconUrl": "https://pacekb.com/icon.svg"
}'
{
  "success": true,
  "message": "Getting Started has been created"
}