hi
How to change a user’s password with REST2?
this is worked:
Invoke-RestMethod -UseBasicParsing -Method PUT -ContentType ‘application/json;charset=utf-8’ -Uri ‘https://rt/REST/2.0/user/rttest’ -Headers @{Authorization = ‘token XXX’} -Body ‘{“City”:“test-city”}’
this is NOT worked:
Invoke-RestMethod -UseBasicParsing -Method PUT -ContentType ‘application/json;charset=utf-8’ -Uri ‘https://rt/REST/2.0/user/rttest’ -Headers @{Authorization = ‘token XXX’} -Body ‘{“Password”:“OxqB9027BjtN6456”}’