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
1415 231 484

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