How to reset user password in keycloak using REST API

I have followed the same steps but still I am getting 500 error. I do not understand what I am doing wrong. Do I need to configure anything. Please help.

Here is a link of the post I have already posted earlier:

Thanks in advance.