code: @POST
      @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
      @Path("/{name}")
      public Response approve(@Auth final DbCredential credential, @PathParam("name") final String name, @QueryParam(ServerAPI.APPROVED_PARAM) final BooleanParam approved){
          if(!credential.getRoles().contains(AvailableRoles.LICENSE_CHECKER)){
              throw new WebApplicationException(Response.status(Response.Status.UNAUTHORIZED).build());
          }
  
          LOG.info("Got a get license request.");
  
          if(approved == null){
              return Response.serverError().status(HttpStatus.NOT_ACCEPTABLE_406).build();
          }
  
          getLicenseHandler().approveLicense(name, approved.get());
          cacheUtils.clear(CacheName.PROMOTION_REPORTS);
          return Response.ok("done").build();
      }
docs: Validate a license
  This method is call via POST <dm_url>/license/<name>?approved=<boolean>
  
  @param credential DbCredential
  @param name String
  @param approved BooleanParam
  @return Response