ACCESS_DENIED customerUpdateInput password in graphql

ACCESS_DENIED customerUpdateInput password in graphql

developebtq
Visitor
1 0 0

mutation customerUpdate(
$customer: CustomerUpdateInput!
$customerAccessToken: String!
) {
customerUpdate(
customer: $customer
customerAccessToken: $customerAccessToken
) {
customer {
email
}
customerUserErrors {
message
}
}
}

I TRYED TO USE THIS MUTATION, FOR THE FIRST TIME I SUCCESSFULLY UPDATE THE PASSWORD, BUT FOR THE THIRD TIME I GET THIS ERROR
{
"data": {
"customerUpdate": null
},
"errors": [
{
"message": "Access denied for customerUpdate field. Required access: `unauthenticated_write_customers` access scope. Also: Requires valid customer access token.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"customerUpdate"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes",
"requiredAccess": "`unauthenticated_write_customers` access scope. Also: Requires valid customer access token."
}
}
]
}

i have configured enable for unauthenticated_write_customers`, and i have valid customer access token

Reply 1 (1)

snakecase
Shopify Partner
18 4 8

Hi,

 

Did you, as well, request access to protected customer data in you partner dashboard?

 

I hope it will help you.