'Rename virtual machine in vSphere using rest api

I could not find anything in the official documentation :-( Is it possible to rename a virtual machine in vsphere using the api?

I want to use the api. No SDK.

Here is the doc link: https://developer.vmware.com/apis/vsphere-automation/v7.0U2-deprecated/vcenter/vm/guest.identity/



Solution 1:[1]

As far as I'm aware, that is not available within the vSphere Automation (REST) API today.

Solution 2:[2]

The listed APIs are the ones publicly provided by the API explorer in vCenter Server. They don't recommend renaming the instance name and this is not a supported operation.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kyle Ruddy
Solution 2