Is there an API for changing a password?

I went to my account preferences and all that exists there is a “Send Password Reset Email” button. Bummer. I’ll have to figure out another way to do it I guess.