Thanks JohnMC, your answer helped me big time :)
I just want to point one more thing witch may result in Proxmox returning error code.
I have copy-pasted your command and changed username and password but got "400 - too many arguments".
The problem was in my password containing "#" and "!"...