code: public String createTempJob(String mcUrl, String mcUserName, String mcPassword, String proxyAddress, String proxyUserName, String proxyPassword) {
          JSONObject job = null;
          String jobId = null;
          String hp4mSecret = null;
          String jsessionId = null;
  
          String loginJson = loginToMC(mcUrl, mcUserName, mcPassword, proxyAddress, proxyUserName, proxyPassword).toJSONString();
          try {
              if (loginJson != null) {
                  JSONObject jsonObject = (JSONObject) JSONValue.parseStrict(loginJson);
                  hp4mSecret = (String) jsonObject.get(Constants.LOGIN_SECRET);
                  jsessionId = (String) jsonObject.get(Constants.JSESSIONID);
              }
          } catch (Exception e) {
              e.printStackTrace();
          }
  
          boolean isValid = argumentsCheck(hp4mSecret, jsessionId);
  
          if (isValid) {
              try {
                  Map<String, String> headers = new HashMap<String, String>();
                  headers.put(Constants.LOGIN_SECRET, hp4mSecret);
                  headers.put(Constants.COOKIE, Constants.JESEEIONEQ + jsessionId);
                  HttpResponse response = HttpUtils.get(HttpUtils.setProxyCfg(proxyAddress,proxyUserName,proxyPassword), mcUrl + Constants.CREATE_JOB_URL, headers, null);
  
                  if (response != null && response.getJsonObject() != null) {
                      job = response.getJsonObject();
                      if(job != null && job.get("data") != null){
                          JSONObject data = (JSONObject)job.get("data");
                          jobId = data.getAsString("id");
                      }
                  }
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
          return jobId;
      }
docs: create one temp job