BizKitHub
DocsAPI ReferenceProduct/bff/product/product-move-to-end
postProductAdmin BFF

/bff/product/product-move-to-end

Shifts every product with a higher position down by one (single UPDATE) and then bumps the target product to the current max position. Preserves 1..N density by construction; a global repack pass is kept as a safety net for organisations whose positions were non-dense on entry.

ProductpostBffProductProduct-move-to-end

Parameters

JSON body

Request body

application/json
codestringRequired

Product code (as returned by /bff/product/list id) to move to the last position.

Examplemy-product

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the operation completed.

previousPositionnumberRequired

Position the product held before the move.

newPositionnumberRequired

Position the product holds after the move.

totalProductsnumberRequired

Total non-deleted products in the organisation.

shiftedCountnumberRequired

How many other products were shifted down by one.

repackedbooleanRequired

Whether a global 1..N repack pass was applied.

Response example

application/json
{
  "success": false,
  "previousPosition": 0,
  "newPosition": 0,
  "totalProducts": 0,
  "shiftedCount": 0,
  "repacked": false
}

Request example

POST /bff/product/product-move-to-end

post
curl -X POST "https://api.bizkithub.com/bff/product/product-move-to-end" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "code": "my-product"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key