Unpublish product variant

Hello,

I’m trying to find a way to unpublish a product variant using the API. Looking at the available mutations for product variants, I can’t seem to see one that would allow me to do this.

One option I found is the publishableUnpublish mutation, but not sure that’s going to help either?

Any help would be greatly appreciated, thank you in advance.

Unless I’m mistaken, it is not possible to unpublish a variant, you can only do it on a product level.

@Luke thanks for the quick reply! Right you are, can’t do this in the UI either. So I think I’ll need to unpublish the product are you mentioned, and it looks like the publishableUnpublish method is the recommended way of doing this now. I’ll give that a go, thank you for your help!