def METHOD_NAME(self, request: Request, organization) -> Response:
    if not self.has_feature(organization, request):
        return self.respond(status=status.HTTP_404_NOT_FOUND)
    project = self.get_project(request, organization)
    serializer = ProjectTransactionThresholdOverrideSerializer(
        data=request.data,
        context={
            "organization": organization,
            "project": project,
        },
    )
    if not serializer.is_valid():
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
    data = serializer.validated_data
    with transaction.atomic(router.db_for_write(ProjectTransactionThresholdOverride)):
        (
            transaction_threshold,
            created,
        ) = ProjectTransactionThresholdOverride.objects.update_or_create(
            transaction=data["transaction"],
            project_id=project.id,
            organization_id=organization.id,
            defaults={
                "threshold": data["threshold"],
                "metric": data["metric"],
                "edited_by_id": request.user.id,
            },
        )
    return Response(
        serialize(
            transaction_threshold,
            request.user,
        ),
        status=status.HTTP_201_CREATED if created else status.HTTP_200_OK,
    )