Before you can reset the administrator password, you must access the appliance console and create a temporary administrator password. You use this password in the REST API complete the administrator password reset.
See Controlling access to the appliance console.