why does ansible code with put method is failing

Hi list,

I am using this ansible code using http method PUT, I have tried changing body to body: ‘{ “NewPassword” : “{{ Password }}” }’ but none of that is helping. I am getting error: “msg”: “Status code was 400 and not [204]: HTTP Error 400: Bad Request”
Please suggest, here is the ansible code: