You are not logged in.
Hi All,
I am trying to update a custom field on my servers using powershell.
I am using the GlpiTools powershell module for this.
The issue I am facing is a 404.0 NOT FOUND error on all the PUT and DELETE methods.
I am debugging outside the powershell module (using the Chrome restlet client pluging) but am unable to modify a computer field.
I am using the JSON content of the example in the apirest.php documentation, but always receive a 404 on the PUT method
Any tips?
When I change the method to POST a new computer gets created with the data I specified in the body...
Currently I feel lost...
GLPI 9.4.3 - Currently in Dev environment - preparing for production
-Preparing data migration from OSTicket to GLPI for the Ticketing/Helpdesk part.
-Preparing data migration from OrangeSCRUM to GLPI for the project management part.
@Working at a company that is responsible for the IT environment of over 4500 employees that have IT assets
Offline
Nobody??
GLPI 9.4.3 - Currently in Dev environment - preparing for production
-Preparing data migration from OSTicket to GLPI for the Ticketing/Helpdesk part.
-Preparing data migration from OrangeSCRUM to GLPI for the project management part.
@Working at a company that is responsible for the IT environment of over 4500 employees that have IT assets
Offline
looks like item id is missing in url
to post a new computer url is …:glpi/apirest.php/computer/
to update computer #25 is …:glpi/apirest.php/computer/25/
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
Hi,
You can have a look at this https://github.com/J-C-P/PSGLPI
It's another GLPI Powershell module I made.
The delete and update fonctions work :-)
Offline
Found it!
In IIS web.config I needed to set the verb for PHP to included PUT,DELETE,PATCH
some info
https://stackoverflow.com/questions/673 … ensionless
GLPI 9.4.3 - Currently in Dev environment - preparing for production
-Preparing data migration from OSTicket to GLPI for the Ticketing/Helpdesk part.
-Preparing data migration from OrangeSCRUM to GLPI for the project management part.
@Working at a company that is responsible for the IT environment of over 4500 employees that have IT assets
Offline