def update_user(uid, datum = nil)
      current_path = "/api/v1/users/#{uid}/update"
      payload = datum.to_json unless datum.nil?
      @conn.put(current_path, payload)
    end
def update_user(uid, datum = nil)
      current_path = "/api/v1/users/#{uid}/update"
      payload = datum.to_json unless datum.nil?
      @conn.put(current_path, payload)
    end
Updates a user.
 @param [Integer] uid user id of the drupal user to update
 @param [Hash] datum hash with elements :name => string, :pass => string,
                                        :status => 0|1, :roles => Array,
                                        :mail => string@string, :tfa_status => 0|1