If you're using 5.0 alpha 4 or alpha 5, you can change your 'elastic' user password via the UI. Navigate to Users page and click on 'elastic' user. Click 'Change Password' and you will see a page like the below screenshot. You can change the password here without using the APIs.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.