BizKitHub
DocsAPI ReferenceProduct Category/bff/product-category/category-create
postProduct CategoryAdmin BFF

/bff/product-category/category-create

Create product category

Product CategorypostBffProduct-categoryCategory-create

Parameters

JSON body

Request body

application/json
namestringRequired

Category display name.

ExampleElectronics
codestringRequired

Unique category code (slug-like).

Exampleelectronics
slugstringOptional

URL slug. Auto-generated from name if not provided.

parentCodestringOptional

Parent category code for nesting.

Exampleroot

Response schema

1 status code documented

200Success
successbooleanRequired
Default: true
codestringRequired
slugstringRequired

Response example

application/json
{
  "success": true,
  "code": "example_code",
  "slug": "example_slug"
}

Request example

POST /bff/product-category/category-create

post
curl -X POST "https://api.bizkithub.com/bff/product-category/category-create" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "name": "Electronics",
  "code": "electronics",
  "slug": "example_slug",
  "parentCode": "root"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key