DocsAPI ReferenceProduct/bff/product/product-category-set-main
getProductAdmin BFF

/bff/product/product-category-set-main

Sets or changes the main category for a product. The main category determines which custom field definitions apply and affects product feed categorization.

ProductgetBffProductProduct-category-set-main

Parameters

2 query

2 total
Query · 2
productCodestringRequired

Product code to set the main category for.

categoryCodestringRequired

Category code to set as main. Pass empty string to unset.

Request

GET /bff/product/product-category-set-main

get
curl -X GET "https://api.bizkithub.com/bff/product/product-category-set-main?productCode=my-product&categoryCode=electronics" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

JSON payload

{
  "success": false
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key