code: @Override
      public void cancelJob(int idJob)
      {
          try
          {
              target.path("ji/cancelled/" + idJob).request().post(null);
          }
          catch (BadRequestException e)
          {
              throw new JqmInvalidRequestException(e.getResponse().readEntity(String.class), e);
          }
          catch (Exception e)
          {
              throw new JqmClientException(e);
          }
      }
docs: /////////////////////////////////////////////////////////////////////