Traversing the Asset Tree

I'm looking into the possibility of using the WebAPI to traverse an Asset's relationship tree, specifically between itself and other assets

Based on my research, it is not possible to see or edit relationships between assets using the WebAPI.

If I am correct can someone confirm this?

If I am wrong can someone show me where to look to see my options for working with the relationship mapping?

 

Thanks

Tags API asset relationship tdwebapi Asset-API
Asked by Harrison Fleisher on Mon 4/8/24 4:39 PM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Mark Sayers Mon 4/8/24 4:41 PM

Hello Harrison,

If you mean that you want to modify/set relationships in a custom manner between assets, then no there are no endpoints for that.

You can define which asset is specified in the "ParentID" property of an asset as its direct parent, but that is as close as it gets.

Sincerely,
Mark Sayers
Sr Support Consultant, CS

1 of 1 users found this helpful.
So to confirm, it would not be possible to get a list of assets that are children of a specific asset. I'm more looking to export the relationship mapping than edit it at this time. - Harrison Fleisher Mon 4/8/24 4:44 PM
You can run a search call to the asset search endpoint looking for children of specific ParentIDs (via an array of parent ID values). - Mark Sayers Mon 4/8/24 4:53 PM