async def patch(self,body: EducationModuleResource, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[EducationModuleResource]:
        """
        Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types.
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[EducationModuleResource]
        Find more info here: https://learn.microsoft.com/graph/api/educationmoduleresource-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.education_module_resource import EducationModuleResource

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

        Update a resource in a module. Only teachers can perform this operation. The only one property that can be updated is displayName, for all resource types.
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[EducationModuleResource]
        Find more info here: https://learn.microsoft.com/graph/api/educationmoduleresource-update?view=graph-rest-1.0
        
msgraph/generated/education/classes/item/modules/item/resources/item/education_module_resource_item_request_builder.py