You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-10-10 14:48:01

catchvjay
Member
Registered: 2017-10-10
Posts: 3

curl throwing errors

Hi Friends,

I am trying to automate glpi updates using rest api but getting some errors. Below are the details.

Version : 9.1.2

Command Trying : curl -X POST -H 'Content-Type: application/json' -H "Session-Token: xxxxx" -H "App-Token: xxxxx" 'https://glpi.xxx.com/apirest.php/Comput … powns=true'

Error Message : ["ERROR_BAD_ARRAY","input parameter must be an array of objects; view documentation in your browser at ]https://glpi.xxx.com/apirest.php/#ERROR_BAD_ARRAY"]

Thanks in advance for your time.

Regards,
Vj

Offline

#2 2017-10-31 14:01:32

catchvjay
Member
Registered: 2017-10-10
Posts: 3

Re: curl throwing errors

I was trying post instead of GET so it was crying for input.

Offline

Board footer

Powered by FluxBB