curl --location --request POST 'https://www.pacekb.com/api/v2/categories/[id]' \
--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",
    "lang": "fr"
}'
{
  "success": true,
  "message": "Category has been updated successfully"
}
id
string
ID of the category to edit

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
lang
string
required
Language code if not an english tag

Response

success
boolean
Indicates whether the call was successful.
message
string
Success/error message
curl --location --request POST 'https://www.pacekb.com/api/v2/categories/[id]' \
--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",
    "lang": "fr"
}'
{
  "success": true,
  "message": "Category has been updated successfully"
}