Child device issue in managedObject api response

I didn’t get the child device name in the API response when I used the following API:

/inventory/managedObjects/1916412839/childAssets?withChildren=true&skipChildrenNames=false

Response:

{
"childDevices": {
"self": "[https://t50680.iot-`Preformatted text`dev.solenis.com/inventory/managedObjects/221374462620/childDevices"](https://t50680.iot-dev.solenis.com/inventory/managedObjects/221374462620/childDevices%22),
"references": [
{
"self": "[https://t50680.iot-dev.solenis.com/inventory/managedObjects/221374462620/childDevices/621374462631"](https://t50680.iot-dev.solenis.com/inventory/managedObjects/221374462620/childDevices/621374462631%22),
"managedObject": {
"self": "[https://t50680.iot-dev.solenis.com/inventory/managedObjects/621374462631"](https://t50680.iot-dev.solenis.com/inventory/managedObjects/621374462631%22),
"id": "621374462631"
}
]
}
}

Hi @rapatel
In Cumulocity, child devices and child assets are distinct concepts:

I’ve attached the relevant APIs for retrieving both child devices and child assets.

I tested using the latest API, and I can confirm that the response includes both the child device ID and name.

1 Like