@lsouai-vates said in Trouble Creating VM via API:
@bryonadams I understand your point of view and the reasoning behind it. However, it’s not always an absolute rule that every field returned by a GET endpoint can be passed back to a POST (or PUT).
Sorry, I don't think I was clear. The keys are different for the same thing. Depending on where you look, autoPowerOn or auto_poweron is returned.
eg:
..rest/v0/pools/_/actions/create_vm/ returns the key "auto_poweron",
/rest/v0/vms/de320b24-d768-50f4-6226-b48f64f85a55 (my example vm) returns the key "auto_poweron"
Swagger doesn't seem to have this key as far as I can tell, unless I'm looking at the wrong thing. I only see a way to filter by tags.
@lsouai-vates said in Trouble Creating VM via API:
Indeed, it also seems you’re not running the latest version of XO. Could you please check again? You should be getting the recent REST API updates:
I don't know how I can be more up to date than up to date.
[image: 1755021997157-49b5e84e-8e5e-4df6-9083-c90d3fe7a541-image.png]