Using wix api to rearrange the product order

Hi folks, I’m wondering if it’s possible to use Wix Velo API to rearrange the order of my products in the store. I understand I can achieve it in the dashboard by dragging. But is it possible to use API to achieve it?
Thank you!