There is no real need to change the path, so using api2 we can reuse all helpers (like tools from proxmox widget toolkit).