code: public String createOrUpdateJob( String jobId, String jobName, String appName, String cmdName, String cron )
  	throws SchedulerWsException {
  
  		if( jobId == null )
  			this.logger.finer( "Creating a new scheduled job."  );
  		else
  			this.logger.finer( "Updating the following scheduled job: " + jobId );
  
  		WebResource path = this.resource.path( UrlConstants.SCHEDULER );
  		if( jobId != null )
  			path = path.queryParam( "job-id", jobId );
  
  		path = path.queryParam( "job-name", jobName );
  		path = path.queryParam( "app-name", appName );
  		path = path.queryParam( "cmd-name", cmdName );
  		path = path.queryParam( "cron", cron );
  
  		ClientResponse response = this.wsClient.createBuilder( path )
  						.accept( MediaType.APPLICATION_JSON )
  						.post( ClientResponse.class );
  
  		handleResponse( response );
  		StringWrapper wrapper = response.getEntity( StringWrapper.class );
  		return wrapper.toString();
  	}
docs: Creates or updates a	scheduled job.
  @param jobId the job's ID (null to create a new job)
  @param jobName the job's name
  @param appName the application's name
  @param cmdName the name of the commands file to execute
  @param cron the CRON expression to trigger the job
  @return the created (or updated) job
  @throws SchedulerWsException if the creation or the update failed