Unable to Reorder Product Option Values via REST API

Hi everyone,

I wanted to follow up on the issue regarding reordering product option values via the REST Admin API (originally discussed in 2022). The problem was that while the API allowed setting option values, it didn’t maintain the specified order when updating them.

The orginal post: Cannot reorder product option values via REST API - Shopify Community

Has anyone found a working solution for this, or has Shopify addressed this limitation in recent API updates? I’m still encountering this issue when trying to programmatically reorder option values.

If you’ve successfully implemented option value reordering via the API, I’d appreciate if you could share your approach. Alternatively, if any Shopify team members could confirm if this is still a known limitation or if there’s a fix in the works, that would be helpful.

Thanks in advance!

Could you please try the below doc?

1 Like

Thank you for the documentation. However, I am unsure if it answers my question.

First and foremost, I am using the REST API, not GraphQL yet. I think there might be some functional differences between the two. When working with two variant options, it’s easy to control variant options at the last level. However, I would like to control option values at the top variant option level, if that makes sense. Currently, you can’t include position data there; it is only available at the variant level (last variant option).

You’ll need to move over to GraphQL, REST is no longer supported.

Is the ability to sort variant option values on top level supported using GraphQL?

@Luke - in case I upgrade to GraphQL, will I be able to sort variant options on the top level?

I don’t know, I suggest trying it out. I was merely stating that you’ll need to migrate over to GraphQL.