Zend certified PHP/Magento developer

magento2 update product stock in MSI programatically

I’m looking for a code which i can use to update msi product stock. with different source code and quantity. I want to update product stock having msi enabled.