Help categoriesCreate

Create a help category

Add a category under an existing help collection. Returns the new category id.

Creates a help category inside a collection. New categories are appended to the end of that collection's order.

Endpoint

POST https://api.productbridge.io/api/external/v1/help-categories/create

Arguments

body
api_keystring
Required

Your organization's public API key. See Authentication.

body
collection_idstring
Required

UUID of the parent collection. Must belong to your organization.

body
namestring
Required

The display name shown inside the collection. 1–512 characters.

body
slugstring

URL-safe identifier, unique within your organization. Derived from name when omitted, with a unique suffix appended on collision. Max 512 characters.

body
descriptionstring

Supporting text shown beneath the category name. Max 512 characters.

body
iconstring

Icon identifier rendered next to the category. Max 512 characters.

body
colorstring

Hex color string used as an accent (e.g. "#4E938A"). Max 50 characters.

Returns

A JSON object with the new category's id.

{ "id": "884c3ef8-b8cd-cd15-01ba-44bb44bb44bb" }

Example request

curl -X POST https://api.productbridge.io/api/external/v1/help-categories/create \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key": "pb_YOUR_PUBLIC_API_KEY",
    "collection_id": "553c3ef8-b8cd-cd15-01ba-12bb12bb12bb",
    "name": "Account",
    "description": "Profile, password, and two-factor authentication.",
    "icon": "user"
  }'

Example response

{
  "id": "884c3ef8-b8cd-cd15-01ba-44bb44bb44bb"
}

You can now create articles with this category_id.

Errors

StatusBodyCause
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 collection not found"}}The collection_id doesn't exist, or belongs to another organization.
422Validation error envelopeMissing collection_id or name, name out of length bounds (1–512), or a field has the wrong type.

See Errors for the full envelope shape and a recommended client-side handler.

Was this page helpful?