Skip to main content
PUT
/
api
/
v1
/
hub
/
shop
/
{shopId}
/
collections
/
{collectionId}
/
products
/
reorder
Reorder Products in Collection
curl --request PUT \
  --url https://api.getscale.ng/api/v1/hub/shop/{shopId}/collections/{collectionId}/products/reorder \
  --header 'Content-Type: application/json' \
  --header 'X-Shop-API-Key: <x-shop-api-key>' \
  --data '
{
  "orders": [
    {
      "productId": 123,
      "sortOrder": 123
    }
  ]
}
'
{
  "status": "success",
  "message": "Collection products order updated successfully"
}
Configures custom display sorting index for items grouped inside a collection.

Authorizations

X-Shop-API-Key
string
required
Your Secret API Key (sk_live_... or sk_test_...) generated from the Developer dashboard. Must be kept secret.

Path Parameters

shopId
string
required
The unique UUID of the shop.
collectionId
number
required
The unique collection ID.

Request Body (JSON)

orders
object[]
required
List of sort mapping records.
{
  "status": "success",
  "message": "Collection products order updated successfully"
}