Import meta fields file/image while import product with graphql api

Import meta fields file/image while import product with graphql api

vinodk
Shopify Partner
24 0 5

Hello
I am working on app and i want to import product with meta fields image with graphql api in php. Please let me know any example i am using jsonl file for import products. I am trying with below code but product not importing.

{"input":{"title":"product1","handle":"product1","descriptionHtml":"","productType":"corporis","metafields":[{"key":"shortdescription","namespace":"custom","value":"newfields value1"},{"key":"ingredients","namespace":"custom","value":"ingredients value1"},{"key":"mediaimage","namespace":"custom","value":"https://cdn.shopify.com/s/files/1/0718/2571/9586/products/6.jpg?v=1677586467"}]}}
Replies 0 (0)