@Khushboo Kumari Thanks for posting in our Q&A.
For android and iOS devices, we can rename the following types of devices:
Android Enterprise: Corporate-owned work profiles, Dedicated devices and Fully managed devices
iOS/iPadOS supervised devices with iOS 9.3 and later
https://learn.microsoft.com/en-us/mem/intune/remote-actions/device-rename
If we can't rename the devices in intune portal, based on my understanding, we still can't rename them via graph.
However, Intune provides a column called “Management name” on the device's properties, which is editable. You can set it to the name you need.
Thanks for your understanding.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.