hartfordfive/ruby-grafana-api

update_user_pass => properties undefined

Opened this issue · 0 comments

Sorry me again, don't have time to git pull + merge request but I think the endpoint is actually /password at the end and the properties must contains the actual password.

Something like
def update_user_pass(user_id,password)
endpoint = " /api/admin/users/#{user_id}/password"
@logger.info("Updating password for user ID #{user_id} (PUT #{endpoint})") if @debug
properties = {
"password" => password
}
return put_request(endpoint,properties)
end

Thanks
Gael