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