async def patch(self,body: InsightsSettings, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InsightsSettings]:
        """
        Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph.
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[InsightsSettings]
        Find more info here: https://learn.microsoft.com/graph/api/insightssettings-update?view=graph-rest-1.0
        """
        if body is None:
            raise TypeError("body cannot be null.")
        request_info = self.to_patch_request_information(
            body, request_configuration
        )
        from ....models.o_data_errors.o_data_error import ODataError

        error_mapping: dict[str, type[ParsableFactory]] = {
            "XXX": ODataError,
        }
        if not self.request_adapter:
            raise Exception("Http core is null") 
        from ....models.insights_settings import InsightsSettings

        return await self.request_adapter.send_async(request_info, InsightsSettings, error_mapping)

        Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph.
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[InsightsSettings]
        Find more info here: https://learn.microsoft.com/graph/api/insightssettings-update?view=graph-rest-1.0
        
msgraph/generated/admin/people/item_insights/item_insights_request_builder.py