async def patch(self,body: UserExperienceAnalyticsWorkFromAnywhereDevice, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[UserExperienceAnalyticsWorkFromAnywhereDevice]:
        """
        Update the navigation property metricDevices in deviceManagement
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[UserExperienceAnalyticsWorkFromAnywhereDevice]
        """
        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.user_experience_analytics_work_from_anywhere_device import UserExperienceAnalyticsWorkFromAnywhereDevice

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

        Update the navigation property metricDevices in deviceManagement
        param body: The request body
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[UserExperienceAnalyticsWorkFromAnywhereDevice]
        
msgraph/generated/device_management/user_experience_analytics_work_from_anywhere_metrics/item/metric_devices/item/user_experience_analytics_work_from_anywhere_device_item_request_builder.py