BizKitHub
DocsAPI ReferenceProduct Parameter/bff/product-parameter/category-assign
postProduct ParameterAdmin BFF

/bff/product-parameter/category-assign

Maps a parameter to a product category. If the mapping already exists, the request is silently ignored (idempotent). This mapping tells the admin UI which parameters to show when editing products in this category.

Product ParameterpostBffProduct-parameterCategory-assign

Parameters

JSON body

Request body

application/json
categoryCodestringRequired

Product category code to map the parameter to.

Exampleelectronics
parameterCodestringRequired

Parameter code to assign to the category.

Exampleweight
requiredbooleanOptional

Whether the parameter is required for products in this category. Defaults to false.

Examplefalse
positionnumberOptional

Sort order position. Defaults to 0.

Example0

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the mapping was created.

Response example

application/json
{
  "success": false
}

Request example

POST /bff/product-parameter/category-assign

post
curl -X POST "https://api.bizkithub.com/bff/product-parameter/category-assign" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "categoryCode": "electronics",
  "parameterCode": "weight",
  "required": false,
  "position": 0
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key