I am calling this endpoint /rest/V1/customers/me to change user password thorugh PUT request with request body:
{
"customer": {
"firstname": "abc",
"lastname": "abc",
"email":"[email protected]",
"website_id": 0,
"addresses": [
{
"region": {
"region_code": "21",
"region": "Pakistan",
"region_id": 92
},
"region_id": 92,
"country_id": "PK",
"street": [
"assa"
],
"city": "lahore",
"firstname": "def",
"lastname": "def",
"telephone": "98798798798",
"postcode": "987987",
"default_shipping": true,
"default_billing": true
}
],
"passwordHash" : "Admin123123"
}
}
I am getting this error:
"message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5cacb11c9a67c
When i've checked the magento log file it shows me this exception:
Message: Property "PasswordHash" does not have accessor method "getPasswordHash" in class "Magento\Customer\Api\Data\CustomerInterface"
I have seen this ref but it didn't works for me. Magento 2: Property does not have accessor method in class "Magento\Checkout\Api\Data\ShippingInformationExtensionInterface
Please help!