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"}'
Copy
{ "success": true, "message": "Category has been updated successfully"}
Categories
Edit Category
This endpoint edits an existing category.
Copy
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"}'
Copy
{ "success": true, "message": "Category has been updated successfully"}
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"}'
Copy
{ "success": true, "message": "Category has been updated successfully"}