HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Update Product Sorting in category

Function

PUT /v1/category_products/:category_id/bulk

Request Parameters

FieldTypeDescriptionExample
productsArrayArray of product priority
商品順序數組

max 500 product.
[ {"product_id": "609378250f47d9003b0f9eb8", "priority": 1}, {"product_id": "609377417e4067002cc5bd6c", "priority": 2} ]

Request Example

curl --location --request PUT 'https://open.shoplineapp.com/v1/category_products/:id/bulk' \
--header 'Content-Type: application/json' \
--header 'Authorization: ${token}' \
--data-raw '{
    "products": [
        {"product_id": "609378250f47d9003b0f9eb8", "priority": 1},
        {"product_id": "609377417e4067002cc5bd6c", "priority": 2}
    ]
}'