code: function updatePreference(id, preference) {
      var callback = preConditions.getCallback(arguments[arguments.length - 1]);
  
      showWarning();
  
      // Add the id to the preferece object
      preference.id = id;
  
      return preferencesModule.update(preference, callback);
    }
docs: Update a preference using the preferenceModule (Make sure that the id is on the payload)
  @param id
  @param preference
  @param callback
  @returns {*}