code: function (jobName, modifyFunction, customParams, callback) {
        [jobName, modifyFunction, customParams, callback] = doArgs(arguments, ['string', 'function', ['object', {}], 'function']);
  
        const self = this;
  
        self.get_config_xml(jobName, customParams, function (error, data) {
          if (error) {
            callback(error, data);
            return;
          }
  
          // Modify the config data
          data = modifyFunction(data);
  
          self.update_job(jobName, data, customParams, callback);
        });
      }
docs: Update a job config xml by passing it through your modifyFunction.
  
  @param {string} jobName
  @param {function} modifyFunction
  @param {object|undefined} customParams is optional
  @param {function} callback