Hi shopify community,
I am doing the following query, using the shopify admin API version: “/admin/api/2023-04/graphql.json”
{
metafieldDefinitions(ownerType: PRODUCT, first: 100) {
edges {
node {
name
description
namespace
key
pinnedPosition
type {
category
name
}
access {
admin
}
}
}
nodes {
name
metafieldsCount
}
}
}
but I am getting this response:
"errors": [
{
"message": "Access denied for access field.",
"locations": [
{
"line": 14,
"column": 9
}
],
"path": [
"metafieldDefinitions",
"edges",
0,
"node",
"access"
]
}
],
For the related: “X-Shopify-Access-Token” token
I have installed a custom app and checked ALL OPTIONS inside “admin api integration”:
but after saving this changes and using the “Admin API access token” I am still having the same error.
Any idea about this?
Thanks in advance