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.

RestAPI call method

RestAPI call method

Hari10
Visitor
1 0 0

How to RestAPI call method use to enable the storefront access button on the metafield definition

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 527

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