My api calls for productCreate (and also for productVariantCreate) are getting Deprecation headers. I cannot determine what part of the request is deprecated.
When I send the same request to my dev store using GraphQL explorer there are no notices for any deprecated fields.
I thought perhaps I had an old version of the explorer loaded, so I deleted and reloaded it.
in scanning through the docs, I found a field I was not using that was listed as deprecated and I added that to see if I could get the app to tell me that that field was deprecated, but that didn't work either.
Support has been no help, only telling me that everything is working properly. What I need to be able to do is find out what parts of my call is deprecated so I can change it. They merely send me links to docs I have read already and told me to post here.
I am using productCreate mutation as described here:
here is an example mutation which is getting the deprecated response header.
any help will be greatly appreciated.
thanks in advance
Solved! Go to the solution
This is an accepted solution.
Hi @rplum ,
Your mutation is currently using two fields in the productCreate input that are deprecating:
First, productInput.published - This argument is deprecated: Use PublishablePublish instead. (https://shopify.dev/docs/admin-api/graphql/reference/mutation/input-object/productinput)
Secondly, productInput.productVariantInput.inventoryManagement - This argument is deprecated: Use tracked attribute on inventoryItem instead. (https://shopify.dev/docs/admin-api/graphql/reference/mutation/input-object/productvariantinput)
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution