I am using wordpress
as well woocommerce
for my web store and also using woocommerce REST API
for Android app
.
I have used WP REST API
and JWT Authentication for WP-API
plugins for user authentication and login through rest api.
Now when I am using below api to change password
https://www.my-domain.com/wp-json/wp/v2/users/<id>
getting below error
{ "code": "rest_cannot_edit", "message": "Sorry, you are not allowed to edit this user.", "data": { "status": 401 } }
I don't know why am getting this error as authentication is done once at time of login. Can any one please help me?