property is not defined in schema and the schema does not allow additional properties, while attempting start/stop/reboot.

Sahil

Member
Jun 14, 2022
32
1
6
Hi Team,

We are doing start/stop/reboot, through the curl API,

(/nodes/proxmox25/qemu/{$vmid}/status/start
/nodes/proxmox25/qemu/{$vmid}/status/stop
/nodes/proxmox25/qemu/{$vmid}/status/reboot)


and it is throwing the below error,

{"data":null,"errors":{"password":"property is not defined in schema and the schema does not allow additional properties","realm":"property is not defined in schema and the schema does not allow additional properties","username":"property is not defined in schema and the schema does not allow additional properties"}

We request you to please check what may be the issue and help us with this,

Kindly do the needful

Thanks & Regards
Sahil Ahmed F
 
Hi,
it seems like you are passing along request parameters username,password and realm that should not be there when sending a request to those API endpoints.

You can either authenticate first and then send along the ticket as a cookie, but the recommended way is using API Tokens, see here for the documentation.