BizKitHub
DocsAPI ReferencePost Category/bff/post-category/create
postPost CategoryAdmin BFF

/bff/post-category/create

Creates a new post category with localization and route. Automatically generates a unique external ID and URL slug from the name.

Post CategorypostBffPost-categoryCreate

Parameters

JSON body

Request body

application/json
namestringRequired

Category name.

Length: 1255
ExampleTech News
localestringRequired

Communication locale code — controls the language of textual data (product names, descriptions, articles, storefront UI, transactional e-mails).

Preferred format: BCP 47 language tag — language[-Script][-REGION]. Use the full tag whenever the script or region matters:

  • en-GB vs. en-US (British vs. American spelling)
  • pt-PT vs. pt-BR (European vs. Brazilian Portuguese)
  • zh-Hans vs. zh-Hant (Simplified vs. Traditional Chinese)
  • sr-Latn vs. sr-Cyrl (Latin vs. Cyrillic Serbian)

Backwards-compatible fallback: the bare two-letter ISO 639-1 code (cs, en, pl, …) is accepted indefinitely — legacy clients that only send the language subtag continue to work unchanged.

Resolution algorithm (server-side): the input is resolved against the supported locale list via the [RFC 4647 Lookup] progressive-fallback strategy — trailing subtags are stripped one by one until a supported locale is found. Example: en-GB-oxendicten-GBen (matched). If no subtag combination is supported, the request is rejected.

Currently supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da, hu, ro, nl, pt, fi, nb, hr. Region-specific variants (e.g. en-GB, pt-BR) are accepted and resolved to their base language when the exact variant is not registered separately.

Length: 235
Examplescsenen-GBpt-BRzh-Hans
parentIdstringOptional

Parent category external ID. If not provided, creates a top-level category.

Exampleabc123def456ghij
descriptionstringOptional

Category description.

ExampleLatest technology news and updates.
metaDescriptionstringOptional

SEO meta description (max 500 characters).

Length: 0500
ExampleTech news, tutorials, and insights.

Response schema

1 status code documented

200Success
successbooleanRequired

Always true on success.

idstringRequired

External ID of the newly created category.

Exampleabc123def456ghij

Response example

application/json
{
  "success": false,
  "id": "abc123def456ghij"
}

Request example

POST /bff/post-category/create

post
curl -X POST "https://api.bizkithub.com/bff/post-category/create" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "name": "Tech News",
  "locale": "cs",
  "parentId": "abc123def456ghij",
  "description": "Latest technology news and updates.",
  "metaDescription": "Tech news, tutorials, and insights."
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key