Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Updating Order of Product Options by Arjun Ohri

$
0
0

I'm trying to update the value of each option's position in order to reorder my options and have not been successful in doing so. When making the PUT calls, I'll get a 200 response but when parsing through the value of the options key in the product object that is returned, the position values have not changed. 

I'm making PUT requests with the following payload: 

{"product": {"id": 343297745, "options": [{"position": 1, "product_id": 343297745, "id": 404882001, "name": "Style"}, {"position": 3, "product_id": 343297745, "id": 404882005, "name": "Color"}, {"position": 2, "product_id": 343297745, "id": 404882009, "name": "Size"}]}}

 

I'll get a 200 response but the Options object looks like this:

[{"position": 1, "product_id": 343297745, "id": 404882001, "name": "Style"}, {"position": 2, "product_id": 343297745, "id": 404882005, "name": "Color"}, {"position": 3, "product_id": 343297745, "id": 404882009, "name": "Size"}]

 

Can someone help?

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>