editPassword url miss

1. $url = $this->url . "users/" . $options ['username'] . "/" . $options ['password'];  -->  $url = $this->url . "users/" . $options ['username'] . "/password";
2. $result = $this->postCurl ( $url, $options, $header);    --> $result = $this->postCurl ( $url, $options, $header, $type = 'PUT')