/bff/product/product-reorder
Atomically redistributes existing position values among the listed products according to the new order. Verifies global density (positions 1..N without gaps) with a cheap aggregate query and runs a window-function repack only if needed.
ProductpostBffProductProduct-reorder
Parameters
1 body
Body · 1
orderedCodesstring[]RequiredProduct codes in their new visual order. Their existing position values are redistributed among them (swapped mutually); products outside this list keep their absolute positions. A global 1..N repack runs only if a position gap is detected after the swap.
Request
POST /bff/product/product-reorder
curl -X POST "https://api.bizkithub.com/bff/product/product-reorder" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"orderedCodes": [
"string"
]
}'Response
JSON payload
{
"success": false,
"reordered": 0,
"totalProducts": 0,
"repacked": false
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.