Reorder a products option values

Hi all,
I’d like to reorder the colors of my products presented by the options.

So if my original options are:

"options": [
{
"id": 10022785548531,
"product_id": 7837352067315,
"name": "Color",
"position": 1,
"values": [
"Black",
"Candy Pink",
"Heather Grey",
"White"
]
},
{
"id": 10022785581299,
"product_id": 7837352067315,
"name": "Size",
"position": 2,
"values": [
"3-4",
"5-6",
"7-8",
"9-11",
"12-14"
]

I’d try to switch Black and Heather Grey

I send a PUT to the REST admin endpoint:

https://mystore.myshopify.com/admin/api/2022-07/products/7837352067315.json

With the updated order of the options:

{"product":{"id":7837352067315,"options":[{"id":10022785548531,"product_id":7837352067315,"name":"Color","position":1,"values":["Black","Candy Pink","Heather Grey","White"]},{"id":10022785581299,"product_id":7837352067315,"name":"Size","position":2,"values":["3-4","5-6","7-8","9-11","12-14"]}] }}

I get a 200 response but the order of the values does not change. Is this supported?

Thank you for your time.

1 Like

This is Resolved.
You cant change the order of the options values. You must change the order of the variants themselves. This is shown as an example in the product API examples.