API Reference
IFC Product

List product relations

code examples curl location globoff 'https //api catenda com/v2/projects/{project id}/ifc/products/{object id}/relations' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api catenda com/v2/projects/{project id}/ifc/products/{object id}/relations", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api catenda com/v2/projects/{project id}/ifc/products/{object id}/relations") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api catenda com/v2/projects/{project id}/ifc/products/{object id}/relations" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // ok { "objectid" 317235853293, "globalid" "4qyylm4zzfqulbravz1xke", "name" "basic wall 0 lba 1328157", "ifctype" "ifcwallstandardcase", "children" \[ { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/317235853294", "objectid" 317235853294, "globalid" "3phkpd2 j2oux4hjtk7fke", "name" "2f", "ifctype" "ifcbuildingstorey" } ], "parent" { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/317235853294", "objectid" 317235853294, "globalid" "3phkpd2 j2oux4hjtk7fke", "name" "2f", "ifctype" "ifcbuildingstorey" }, "type" { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/types/317235940695", "objectid" 317235940695, "globalid" "3qd5rl4zta7w3keke", "name" "basic wall 0 lba", "ifctype" "ifcwalltype" }, "systems" \[ { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289", "objectid" 417235853289, "globalid" "9dymac7ar51vph7fe7cb7f", "name" "", "ifctype" "ifcsystem" } ], "zones" \[ { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289", "objectid" 417235853289, "globalid" "9dymac7ar51vph7fe7cb7f", "name" "", "ifctype" "ifczone" } ], "groups" \[ { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289", "objectid" 417235853289, "globalid" "9dymac7ar51vph7fe7cb7f", "name" "", "ifctype" "ifcgroup" } ], "layers" \[ { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/layers/", "objectid" 217236997495, "name" "a wall otln", "ifctype" "ifcpresentationlayerassignment" } ], "classificationreferences" \[ { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/classification references/317636045083", "objectid" 317636045083, "name" "showers", "ifctype" "ifcclassificationreference", "attributes" {} } ], "ownerhistory" { "url" "https //api catenda com/v2/projects/67551168422040148d8ae198a321494d/ifc/ownerhistory/617235853043", "objectid" 617235853043, "name" "", "ifctype" "ifcownerhistory" } }