Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
How to RestAPI call method use to enable the storefront access button on the metafield definition
Hi @Hari10 ,
Currently this is only available through GraphQL API's. The access level is determined by the metafield definition, which isn't available on REST.
Here's a link to the graphql mutation: https://shopify.dev/docs/api/admin-graphql/2024-01/mutations/metafieldDefinitionCreate
This document here gives a good overall summary as well:
- https://shopify.dev/docs/apps/build/custom-data/metafields/definitions
Hope that helps,
- Kyle G.
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