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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!