Parameters
JSON body
Request body
application/jsonproductCodesstring[]RequiredProduct codes to update.
categoryCodestringRequiredCategory code to assign as main. Empty string clears the main category.
Example
electronicsAssigns the same main category to every matched product in a single UPDATE. Soft-deleted rows are skipped. Pass an empty categoryCode to unset. An unknown category is a 500 (the write helper throws).
JSON body
productCodesstring[]RequiredProduct codes to update.
categoryCodestringRequiredCategory code to assign as main. Empty string clears the main category.
electronics1 status code documented
success"true"RequiredmatchednumberRequiredrequestednumberRequired{
"success": true,
"matched": 0,
"requested": 0
}POST /bff/product/bulk-set-main-category
curl -X POST "https://api.bizkithub.com/bff/product/bulk-set-main-category" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"productCodes": [
"my-product"
],
"categoryCode": "electronics"
}'All BizKitHub public API endpoints require authentication via API key.