I’m trying to create a metafield definition on PRODUCT owner type using GraphQL API, but there are existing metafield values for the namespace/key I’m using.
When I use metafieldDefinitionCreate, I end up with the error “Namespace and key is already in use for a set of your metafields”.
I know it can be done in the Shopify Admin UI by picking “Metafields without a definition” and then adding one, but is there any way to do it with the API?
I can’t understand why it is forbidden through the API but Permitted through the Admin Dashboard.
It should have the same behavior through both channels.
Could someone from Shopify Stuff inlight us with the purpose of the different behavior?
We need a solution so if there are Metafields created, be able to create Metafield Definitions on top of that anyway. Otherwise we have existing Metafields on some shops that we can’t reuse and display on the UI.