code: function create_folder(folderName, customParams, callback) {
        var _doArgs75 = doArgs(arguments, ['string', ['object', {}], 'function']);
  
        var _doArgs76 = _slicedToArray(_doArgs75, 3);
  
        folderName = _doArgs76[0];
        customParams = _doArgs76[1];
        callback = _doArgs76[2];
  
  
        var mode = 'com.cloudbees.hudson.plugins.folder.Folder';
  
        customParams.name = folderName;
        customParams.mode = mode;
        customParams.Submit = 'OK';
  
        doRequest({
          method: 'POST',
          urlPattern: [NEWFOLDER]
        }, customParams, callback);
      }
docs: /* Create a new folder
  Needs Folder plugin in Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin
  curl -XPOST 'http://jenkins/createItem?name=FolderName&mode=com.cloudbees.hudson.plugins.folder.Folder&from=&json=%7B%22name%22%3A%22FolderName%22%2C%22mode%22%3A%22com.cloudbees.hudson.plugins.folder.Folder%22%2C%22from%22%3A%22%22%2C%22Submit%22%3A%22OK%22%7D&Submit=OK' --user user.name:YourAPIToken -H "Content-Type:application/x-www-form-urlencoded"
  https://gist.github.com/stuart-warren/7786892