def METHOD_NAME(self, request: Request, organization) -> Response:
    """
    Create a saved query
    """
    if not self.has_feature(organization, request):
        return self.respond(status=404)
    try:
        params = self.get_filter_params(
            request, organization, project_ids=request.data.get("projects")
        )
    except NoProjects:
        raise ParseError(detail="No Projects found, join a Team")
    serializer = DiscoverSavedQuerySerializer(
        data=request.data,
        context={"params": params},
    )
    if not serializer.is_valid():
        return Response(serializer.errors, status=400)
    data = serializer.validated_data
    model = DiscoverSavedQuery.objects.create(
        organization=organization,
        name=data["name"],
        query=data["query"],
        version=data["version"],
        created_by_id=request.user.id if request.user.is_authenticated else None,
    )
    model.set_projects(data["project_ids"])
    return Response(serialize(model), status=201)