Part of my HomeLab and my Proxmox documentation.
Via SSH as root
qm set VM-ID -sataN /dev/disk/by-id/DISK-ID