Change the users password.
Param name | Description |
---|---|
user required |
Map containing users password value to be updated Value: Must be a Hash |
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
is_oem optional |
OEM Admin user can change password of user in child account by oem user if is_oem flag is true. Value: Must be a Boolean |
Request curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:BmHmv9IJey5l_LK0N2Ciaw" -d '{"user":{"password":"jack123456"}}' https://api.datonis.io/api/v3/users/1e5228ttd8/change_password Response { "user": { "address": "Baner", "city": "Pune", "confirmed_at": "2015-11-04T09:08:01.247Z", "country": "India", "email": "bill@acme.com", "first_name": "bill", "last_name": "Doe", "phone": "9803123547", "role": "admin", "time_zone": "Mumbai", "user_key": "1e5228ttd8", "created_at": 1446627978, "updated_at": 1448445499, "role_name": "Account Admin", "role_key": "67e37d7bat" } }