Error on creating shopify metafield definition

When I try to create a shopify metafield definition I get:

Setting access controls on a definition under this namespace is not permitted

This is the graphql variable:

"definition": {
            "description": "mymeta",
            "key": "mymeta",
            "name": "mymeta",
            "namespace": "features",
            "ownerType": "PRODUCT",
            "pin": True,
            "type": "single_line_text_field",
            "useAsCollectionCondition": True,
            "visibleToStorefrontApi": True
        }

Hi Antonio,

It doesn’t look like your variables have a access input field - if you add one in like in the example from our docs, does the error still appear?

Hi @Liam
I’m getting error Setting access controls on a definition under this namespace is not permitted. when I set the access input field.
I need to make the metafield visible on the storefront. Could you please guide what would be the right approach with the new API 2024-04?
Thanks

1 Like

Hey, I am having the same issue, did you make it work? Thanks,

Alex

1 Like