Update Smart Collection Sort Order via API - Is this broken?

Update Smart Collection Sort Order via API - Is this broken?

jacksos101
Shopify Partner
4 0 3

Problem endpoint: https://shopify.dev/docs/api/admin-rest/2024-01/resources/smartcollection#put-smart-collections-smar...

 

I have spent a long time playing with the rest API, trying to shuffle the order of my collection products.

 

I am hitting the following endpoint with a PUT request, and am receiving a 200 response with empty body, as expected:

 

https://my-website.myshopify.com/admin/api/2024-01/smart_collections/401599660248/order.json?sort_order=manual&products[]=8109662863576&products[]=8109663387864

 

The problem? The products do not get sorted in the order that I have provided. Often, there is no change to the order.

 

Sometimes, if I repeat the request, there might be a small change in the order that I request, but it is still not correct. 

 

I have tried specifying 'products[]=' to clear the sort order, as described in the docs. But this still doesn't fix anything for me.

 

Can anyone see what I might be doing wrong? Is anyone else using this endpoint to reorder products, and is having success?

 

 

Replies 0 (0)