Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello!
Im trying to query the following grahpql:
query GetShopPolicies {
shop {
myshopifyDomain
shopPolicies {
id
title
body
type
url
createdAt
updatedAt
}
}
}
i have the scopes for it
read_legal_policies,read_privacy_settings"
But this is what i get from the query:
{
"errors": [
{
"message": "Access denied for shopPolicies field. Required access: `read_legal_policies` access scope. Also: The user must have access to manage legal policies.",
"locations": [
{
"line": 4,
"column": 5
}
],
"path": [
"shop",
"shopPolicies"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes",
"requiredAccess": "`read_legal_policies` access scope. Also: The user must have access to manage legal policies."
}
}
],
"data": null,
"extensions": {
"cost": {
"requestedQueryCost": 2,
"actualQueryCost": 2,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1998,
"restoreRate": 100
}
}
}
}
Where do i have to give "access to manage legal policies"?
It is written in the docs that you must, but it doesnt say "How to"
References: https://shopify.dev/docs/api/admin-graphql/2024-07/objects/ShopPolicy
91 views, no responses, is this not clear from my side? is there something wrong in my post?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024