Changing inventory status of items using REST APIs

Hi,

I wanted to know how to make item out of stock or simply change from in stock to out of stock and out of stock to in stock using inventory API?

Even sending quantity: 0, inStock: false, trackQuantity: true to inventory api & at product level setting quantity 0 and status OUT_OF_STOCK still item is created as in stock. Same problem with product with variants.

I want to know how to change item quantity and mark item out of stock either item with variants or without variants.

Here is POST request I made -
{“inventoryItem”:{“trackQuantity”:true,“variants”:[{“variantId”:“00000000-0000-0000-0000-000000000000”,“quantity”:0,“inStock”:false}]}}

here is API URL where i made the POST request
https://www.wixapis.com/stores/v2/inventoryItems/73857816-abeb-b014-4f9d-67b845126bd5

It also returned HTTP/1.1 200 OK in header with empty body in the response.