Hi,
In general, in order to convert the thick disks to thin disks using CloneVM_Task API, you would need to set the VirtualMachineCloneSpec.location.transform as VirtualMachineRelocateTransformation.sparse. To perform the reverse operation, i.e. to convert a thin disk to thick disk, set the transform property as VirtualMachineRelocateTransformation.flat
I hope this might prove helpful to you!
- Angela -