Identifying direct parents of managed object

Hello,

When retrieving a specific managed object ( Cumulocity - OpenAPI ) with the withParents=true option it will return all ancestors in the hierarchy.

Is there a way to identify the direct parent(s) of the objects without further API calls?

Hi @Niko and welcome to the Cumulocity Tech Community! :waving_hand:

No, without further API calls this isn’t possible I guess. You need to query the parents and check if your MO is part of the childAssets, childAdditions, childDevices to identify it as an direct ancestor.