DocsAPI ReferenceProduct/bff/product/product-reorder
postProductAdmin BFF

/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

1 total
Body · 1
orderedCodesstring[]Required

Product 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

post
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.

Get API Key