Delete a help category
Soft-delete a help category. Cascades to every article inside it.
Soft-deletes a help category. It disappears from your dashboard and public help center, but the row is retained and its slug is freed for reuse.
This cascades. Deleting a category also soft-deletes every article inside it. There is no undo through the API.
Endpoint
POST https://api.productbridge.io/api/external/v1/help-categories/delete
Arguments
body
api_keystring
RequiredYour organization's public API key. See Authentication.
body
category_idstring
RequiredUUID of the category to delete. Must belong to your organization.
Returns
{ "success": true }
Example request
curl -X POST https://api.productbridge.io/api/external/v1/help-categories/delete \
-H 'Content-Type: application/json' \
-d '{
"api_key": "pb_YOUR_PUBLIC_API_KEY",
"category_id": "884c3ef8-b8cd-cd15-01ba-44bb44bb44bb"
}'
const res = await fetch(
"https://api.productbridge.io/api/external/v1/help-categories/delete",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
api_key: process.env.PRODUCTBRIDGE_API_KEY,
category_id: "884c3ef8-b8cd-cd15-01ba-44bb44bb44bb",
}),
}
);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
import os, httpx
resp = httpx.post(
"https://api.productbridge.io/api/external/v1/help-categories/delete",
json={
"api_key": os.environ["PRODUCTBRIDGE_API_KEY"],
"category_id": "884c3ef8-b8cd-cd15-01ba-44bb44bb44bb",
},
)
resp.raise_for_status()
Example response
{
"success": true
}
Keeping the articles
To empty a category before deleting it, list its articles with this category_id, then update each one with a different category_id — or a collection_id, to file it directly in a collection instead.
Errors
| Status | Body | Cause |
|---|---|---|
401 | {"detail":{"error":"invalid api_key"}} | Missing / unknown / inactive api_key. |
403 | {"detail":{"error":"The Help Center is not enabled on your current plan..."}} | Your plan does not include the knowledgebase feature. |
404 | {"detail":{"error":"help category not found"}} | No such category, it was already deleted, or it belongs to another organization. |
422 | Validation error envelope | category_id missing or not a valid UUID. |
See Errors for the full envelope shape and a recommended client-side handler.
Was this page helpful?