I have searched high and low but have not found a way to set a password for an admin user via the API. Does anybody know if this is even possible or if you need to use the UI or CLI only?
Here's the xpath value that worked for me:
It should say:
<response status="success" code="19">
I ran this as well with a success code, but it does not appear to change any passwords. Did you confirm you were able to log in with a new password after the above change? Also what password is set by that api call?
Here is the correct call to modify the phash value of an administrator.
Replace the <firewall>, <key>, username, and password attributes to appropriate values. Once the call is made you should be able to see the changed value via the get API call but the change will not take effect until a commit is completed.
You can also use an API call to generate the password hash.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The Live Community thanks you for your participation!