If you're using php, try using this. You can use the syntax given above by tom and wolfgang, and use it in your php scripts with an array as you'd specified.
https://github.com/ZzAntares/ProxmoxVE
Hi there
I've installed ifupdown2, and I use the API to control the creation and deletion of VMs and Bridges.
I now need and API or CLI way to "Apply Configuration"
ifreload -a doesn't do it, unfortunately
Thanks in advance