docs: @RequestMapping(value = "api/servergroup/{id}", method = RequestMethod.POST)
      public
      @ResponseBody
      ServerGroup updateServerGroup(Model model,
                                    @PathVariable int id,
                                    @RequestParam(required = false) Integer profileId,
                                    @RequestParam(required = false) String name,
                                    @RequestParam(required = false) Boolean activate,
                                    @RequestParam(required = false) String clientUUID,
                                    @RequestParam(value = "profileIdentifier", required = false) String profileIdentifier) throws Exception {
          if (profileId == null && profileIdentifier == null) {
              throw new Exception("profileId required");
          }
          if (profileId == null) {
              profileId = ProfileService.getInstance().getIdFromName(profileIdentifier);
          }
          if (name != null) {
              ServerRedirectService.getInstance().setGroupName(name, id);
          }
  
          if (activate != null) {
              if (clientUUID == null) {
                  throw new Exception("clientUUID required");
              }
  
              int clientId = ClientService.getInstance().findClient(clientUUID, profileId).getId();
  
              if (activate) {
                  ServerRedirectService.getInstance().activateServerGroup(id, clientId);
              } else {
                  ServerRedirectService.getInstance().activateServerGroup(0, clientId);
              }
          }
  
          return ServerRedirectService.getInstance().getServerGroup(id, profileId);
      }