In the past (exactly less than 3 weeks ago), I could post new products with their inventory but today when I tried to publish ew products, I no longer can do the same thing. Instead shopify didn't allow me to do so.
Please advise wether the API doesn't support to publish product with their inventory anymore?
I meant publish with the inventory right at the time of publishing, not update the inventory of existed products.
Because products can now be stocked at multiple locations, this was deprecated some time ago and recently removed.
Here's a walkthrough of how to update quantities: https://shopify.dev/tutorials/manage-product-inventory-with-admin-api