You are not logged in.
I have and error Enable Financial and Administrative information to a computer knowing the ID.
I tryed with curl:
curl -X POST "myglpiserver/apirest.php/infocom/" \
-H "Content-Type: application/json" \
-H "Session-Token: ........" \
-H "App-Token: ......." \
-d '{"input":{"itemtype":"Computer","items_id":".....computer_id....","entities_id":2,"is_recursive":0,"buy_date":null,"use_date":null,"warranty_duration":0,"warranty_info":null,"suppliers_id":0,"order_number":null,"delivery_number":null,"immo_number":null,"value":"102.0000","warranty_value":"0.0000","sink_time":0,"sink_type":0,"sink_coeff":0,"comment":null,"bill":null,"budgets_id":0,"alert":4,"order_date":null,"delivery_date":null,"inventory_date":null,"warranty_date":null,"businesscriticities_id":0}}'
I´m getting ["ERROR_RESOURCE_NOT_FOUND_NOR_COMMONDBTM","resource not found or not an instance of CommonDBTM; view documentation in your browser at myglpiserver/apirest.php/infocom//#ERROR_RESOURCE_NOT_FOUND_NOR_COMMONDBTM"]
Any help?
Regards.
Offline
It is "Infocom" not "infocom". The current API is case sensitive.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline