def METHOD_NAME(self, request: Request, *args, **kwargs):  # pylint: disable=unused-argument
    group_config: GroupConfig = self.get_object()
    if request.method == "POST":
        serializer = HostGroupConfigSerializer(data=request.data, many=True)
        serializer.is_valid(raise_exception=True)
        METHOD_NAME = [host_data["id"] for host_data in serializer.validated_data]
        group_config.check_host_candidate([host.pk for host in METHOD_NAME])
        group_config.METHOD_NAME.add(*METHOD_NAME)
        return Response(data=HostGroupConfigSerializer(METHOD_NAME, many=True).data, status=HTTP_201_CREATED)
    queryset = group_config.METHOD_NAME.order_by("fqdn")
    serializer = HostGroupConfigSerializer(self.paginate_queryset(queryset=queryset), many=True)
    return self.get_paginated_response(data=serializer.data)