How to trigger the generate password through api?

Can any tell how to reset password through api?