HLAPI - Possibility to create Components based Item for Assets as in Legacy API
Hello,
Is it possible to add the endpoints responsible for linking a Component to a given Asset?
For example; I want to create an item based on a DeviceHardDrive Component (with an ID of 2) for an Asset (a Computer with the ID 100). With the legacy API I can do the following:
https://{{GLPI}}/apirest.php/Computer/:computerId/Item_DeviceHardDrive/
With the corresponding payload:
{
"input": [
{
"items_id": 100,
"itemtype": "Computer",
"deviceharddrives_id": 2,
"capacity": 9314000,
"serial": "abc123",
"entities_id": 0,
"busID": "1",
"otherserial": "otherSerial_def456",
"locations_id": 1,
"states_id": 60
}
]
}
This will create an item DeviceHardDrive which will be linked to Computer 100.
After searching a while in the SwaggerUI of the High Level API, I didn't find an endpoint which describes the following behavior.
So I started to make web search, to confirm if I'm simply blind and that I didn't see the endpoint(s) that I was searching for.
I found this topic that clearly says that this behavior is not currently available but, that we have to follow the changelogs until it appears:
https://forum.glpi-project.org/viewtopic.php?id=293852
Then I searched on the official GitHub repository of GLPI if a PR is on progress (or if an issue exists) for this feature but, I didn't find one (I was filtering with the label api though) so, that's the reason why I am posting this feature request.
Servicio de atención al cliente por UserEcho