Posted metafields are not showing in Product metafield definitions

Hi Team,

We want to show metafields in definition tab but it’s showing in without definition tab, we are posting metafields vai admin API using and data as

https://{shop}.myshopify.com/admin/api/2023-01/products/{productID}/metafields.json

{
“metafield”: {
“namespace”: “global”,
“key”: “author”,
“value”: “author”,
“type”: “author”,
“name”:“author”,
“description”:“author”
}
}

will you please help.

Regards
Shelokar

Hey @shelokar - thanks for getting in touch. Are you setting definitions for the metafield either when you’ve created it/associated with a product or after the metafield has been created? We have a guide on how to do this in our docs here - I’m thinking this could be why you’re not seeing them appear there.

That said, if you have set the definitions through the MetaFieldDefinitionCreate or the MetaFieldDefitionUpdate mutations - just reply back here and we can take a look. Hope this helps - let us know if we can help out further.

1 Like