Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Not able to update MetafieldDefinition.validations field

Not able to update MetafieldDefinition.validations field

GOAT_GROUP
Shopify Partner
1 0 0

Hello!

We're using the GraphQl API to create and update MetafieldDefinitions.
The issue we're facing right now is that the metafieldDefinitionUpdate mutation doesn't allow to update the validations field.

This is an issue for us specially because we won't be able to update dropdown values for the metafield definitions.

 

Is there any endpoint or any way to update a MetafieldDefinitionValidation ?

 

Thanks in advance!

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 525

Hey @GOAT_GROUP - I was able to look into this for you and have an update! I spoke with members of our product team responsible for the metafields component and they confirmed that at the moment the mutation doesn't allow the use of the validations field, but that they will work on adding that functionality in an upcoming release for the API. I can't guarantee a timeline, but I can confirm that this is part of our near-term roadmap. 

Thanks for mentioning this and bringing this to our attention - it's really appreciated. Let me know if we can clarify anything on our end. 

Al | Shopify Developer Support

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