you can use qm set/create XXXX --scsi0 STORAGE:0,import-from=SOURCE_VOLID,... which is also available on the API using the create_vm and update_vm API endpoints
you can use qm set/create XXXX --scsi0 STORAGE:0,import-from=SOURCE_VOLID,... which is also available on the API using the create_vm and update_vm API endpoints