def METHOD_NAME(
    self, request: Request, data, workspace_id: int, notification_id: int
) -> Response:
    """
    Updates the notification with the given id.
    """
    notification_recipient = NotificationService.mark_notification_as_read(
        request.user, workspace_id, notification_id, data["read"]
    )
    return Response(NotificationRecipientSerializer(notification_recipient).data)