You are not logged in.
Pages: 1
Hello,
I have a problem regarding the use of the GLPI API.
I can successfully add a new computer to the GLPI system using HTTP requests (endpoint: /computer), and I can also add a new processor (endpoint: /processor).
GLPI uses a separate table in the SQL database to associate these components.
Is there an API endpoint or any other way to connect components to a computer via the API?
Offline
You can use "/Item_DeviceProcessor" and manually include the "itemtype": "Computer" and "items_id": ID properties.
You can also access them from "/Computer/ID/Item_DeviceProcessor" which can get just the ones associated with the specified computer.
However, if you try adding a processor from that endpoint too, you still need to manually add the itemtype and items_id properties. It isn't smart enough to automatically set them.
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
Pages: 1