RE: Do we have API for change password

2016-03-22 Thread Satyanarayana Jampa
Got it working curl -w "%{http_code}" -o /dev/null --user admin:admin From: Satyanarayana Jampa [mailto:sja...@innominds.com] Sent: 22 March 2016 09:55 To: user@ambari.apache.org Subject: RE: Do we have API for change password Can we get the HTTP response code in this? From:

Re: Do we have API for change password

2016-03-21 Thread Dmitry Sen
It works for me: curl -i -u admin:admin 'http://192.168.120.6:1081/api/v1/users/admin' -X PUT -H 'X-Requested-By: ambari' --data-binary '{"Users/password":"newpasswd","Users/old_password":"admin"}' BR, Dmytro Sen From: Satyanarayana Jampa