Proxmox API Postman Post Request Error 506

silenzer

New Member
May 31, 2023
13
0
1
Hello guys, I am trying to create a VM with the Proxmox API with Postman. I added the Ticket in the Cookies and the CSRFPreventionToken in the Headers, which works. But I dont know how to add the parameters which are required and the optional parameters (https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu). I tried it like this:
1689170873838.png
(Node and Cookie is censored but it is right.) I get this 506 error. I assume it has something to do with the format but I can't exactly find the problem or how to solve it. If anybody could help me I would be really thankful.
 
Hi,

looks like Postman is transferring the POST data as form data.
The API on the other hand expects JSON-encoded data in the body of the request.

From what I could quickly gather Postman can do that.

Hope this helps!
 
  • Like
Reactions: silenzer