How do I add location and inventory in product while I create a product in shopify using Api?

Shopify Partner
32 0 5

Currently I'm adding a product in shopify using both way of api one is using rest api and second is using graphql api but 

my private app created in partner use old version so  shopify gives warning now to use latest version.


As you can see :


So now How can I add location and Inventory in added product?

Is there any api to add inventory at specified location during create product?

Please help.


Reply 1 (1)
Shopify Staff
Shopify Staff
1098 146 229

Hey @Q_2 


Here's a tutorial:

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog