---
title: List product relations
slug: model-api/list-product-relations
docTags: 
createdAt: 2024-06-10T16:48:45.445Z
---

{
  "id": "gKYmmSjJwu3ZPEMVFxps6",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.catenda.com/v2/projects/{project-id}/ifc/products/{object-id}/relations",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/projects/{project-id}/ifc/products/{object-id}/relations"
      }
    ],
    "name": "List product relations",
    "description": "<p>List all the relations for a product. A product is related to child products, a parent product, a type, systems, zones, groups, layers, classification references and an owner history.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "project-id",
          "type": "string",
          "example": "af2d8af0fa54465b89bf26dd3d92cfd0",
          "description": "Catenda project id"
        },
        {
          "kind": "required",
          "name": "object-id",
          "type": "integer<int64>",
          "description": "Object id of the product",
          "format": "int64"
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "revision",
          "type": "array",
          "description": "Filter by revision id. Can be repeated to filter by multiple revisions.",
          "schema": [],
          "itemType": "string",
          "customType": "string[]"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "ifc-product-relation",
            "schema": [
              {
                "name": "objectId",
                "kind": "optional",
                "type": "integer<int64>",
                "description": "The object id of the product",
                "example": 317235853293,
                "format": "int64"
              },
              {
                "name": "globalId",
                "kind": "optional",
                "type": "string",
                "description": "A 22 character IfcGloballyUniqueId",
                "example": "4qyyLM4ZzFQuLbRaVZ1xKE"
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "description": "The name of the product",
                "example": "Basic Wall:0-LBA:1328157"
              },
              {
                "name": "ifcType",
                "kind": "optional",
                "type": "string",
                "description": "The entity type of the product",
                "example": "IfcWallStandardCase"
              },
              {
                "name": "children",
                "kind": "optional",
                "type": "array",
                "description": "The child products related to the product according to the containment hierarchy",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The product resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/317235853294"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the product",
                    "example": 317235853294,
                    "format": "int64"
                  },
                  {
                    "name": "globalId",
                    "kind": "optional",
                    "type": "string",
                    "description": "A 22 character IfcGloballyUniqueId",
                    "example": "3PhkPD2_j2ouX4hJTk7FKE"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "The name of the product",
                    "example": "2F"
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the product",
                    "example": "IfcBuildingStorey"
                  }
                ]
              },
              {
                "name": "parent",
                "kind": "optional",
                "type": "object",
                "description": "The parent product related to the product according to the containment hierarchy",
                "example": "",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The product resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/317235853294"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the product",
                    "example": 317235853294,
                    "format": "int64"
                  },
                  {
                    "name": "globalId",
                    "kind": "optional",
                    "type": "string",
                    "description": "A 22 character IfcGloballyUniqueId",
                    "example": "3PhkPD2_j2ouX4hJTk7FKE"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "The name of the product",
                    "example": "2F"
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the product",
                    "example": "IfcBuildingStorey"
                  }
                ]
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "object",
                "description": "The type related to the product",
                "example": "",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The type resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/types/317235940695"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the type",
                    "example": 317235940695,
                    "format": "int64"
                  },
                  {
                    "name": "globalId",
                    "kind": "optional",
                    "type": "string",
                    "description": "A 22 character IfcGloballyUniqueId",
                    "example": "3qd5RL4ZTA7w3kEKe"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "The name of the type",
                    "example": "Basic Wall:0-LBA"
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the type",
                    "example": "IfcWallType"
                  }
                ]
              },
              {
                "name": "systems",
                "kind": "optional",
                "type": "array",
                "description": "The system groups related to the product",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The group resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the group",
                    "example": 417235853289,
                    "format": "int64"
                  },
                  {
                    "name": "globalId",
                    "kind": "optional",
                    "type": "string",
                    "description": "A 22 character IfcGloballyUniqueId",
                    "example": "9dYMac7Ar51vpH7fe7CB7F"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "The name of the group",
                    "example": ""
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the group",
                    "example": "IfcSystem"
                  }
                ]
              },
              {
                "name": "zones",
                "kind": "optional",
                "type": "array",
                "description": "The zone groups related to the product",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The group resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the group",
                    "example": 417235853289,
                    "format": "int64"
                  },
                  {
                    "name": "globalId",
                    "kind": "optional",
                    "type": "string",
                    "description": "A 22 character IfcGloballyUniqueId",
                    "example": "9dYMac7Ar51vpH7fe7CB7F"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "The name of the group",
                    "example": ""
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the group",
                    "example": "IfcZone"
                  }
                ]
              },
              {
                "name": "groups",
                "kind": "optional",
                "type": "array",
                "description": "The groups related to the product",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The group resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the group",
                    "example": 417235853289,
                    "format": "int64"
                  },
                  {
                    "name": "globalId",
                    "kind": "optional",
                    "type": "string",
                    "description": "A 22 character IfcGloballyUniqueId",
                    "example": "9dYMac7Ar51vpH7fe7CB7F"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "The name of the group",
                    "example": ""
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the group",
                    "example": "IfcGroup"
                  }
                ]
              },
              {
                "name": "layers",
                "kind": "optional",
                "type": "array",
                "description": "The layers related to the product",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The layer resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/layers/"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the layer",
                    "example": 217236997495,
                    "format": "int64"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "The name of the layer",
                    "example": "A-WALL-____-OTLN"
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the layer",
                    "example": "IfcPresentationLayerAssignment"
                  }
                ]
              },
              {
                "name": "classificationReferences",
                "kind": "optional",
                "type": "array",
                "description": "The classification references related to the product",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The classification reference resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/classification_references/317636045083"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the classification reference",
                    "example": 317636045083,
                    "format": "int64"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "description": "The name of the classification reference",
                    "example": "Showers"
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the classification reference",
                    "example": "IfcClassificationReference"
                  },
                  {
                    "name": "attributes",
                    "kind": "optional",
                    "type": "object",
                    "description": "The attributes of the classification reference including the identifier",
                    "example": "",
                    "schema": []
                  }
                ]
              },
              {
                "name": "ownerHistory",
                "kind": "optional",
                "type": "object",
                "description": "The owner history related to the product",
                "example": "",
                "schema": [
                  {
                    "name": "url",
                    "kind": "optional",
                    "type": "string",
                    "description": "The owner history resource URL",
                    "example": "https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/ownerhistory/617235853043"
                  },
                  {
                    "name": "objectId",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "The object id of the owner history",
                    "example": 617235853043,
                    "format": "int64"
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "The name of the owner history",
                    "example": ""
                  },
                  {
                    "name": "ifcType",
                    "kind": "optional",
                    "type": "string",
                    "description": "The entity type of the owner history",
                    "example": "IfcOwnerHistory"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ifc-product-relation",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "lpAsUL32syQ9aE9siCuDG",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.catenda.com/v2/projects/{project-id}/ifc/products/{object-id}/relations \\\n     --header 'accept: application/json'"
        },
        {
          "id": "FfbisNbu-CJovSiySvVaC",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.catenda.com/v2/projects/{project-id}/ifc/products/{object-id}/relations\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "OiTkREipUFGmodHEwfnIP",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/projects/{project-id}/ifc/products/{object-id}/relations\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "aRtOaalhZKLwABlC8m6u8",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/projects/{project-id}/ifc/products/{object-id}/relations\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "lpAsUL32syQ9aE9siCuDG"
    },
    "results": {
      "languages": [
        {
          "id": "sI7q6ZxE0bz7qMoh28OQ-",
          "language": "200",
          "code": "// OK\n{\n  \"objectId\": 317235853293,\n  \"globalId\": \"4qyyLM4ZzFQuLbRaVZ1xKE\",\n  \"name\": \"Basic Wall:0-LBA:1328157\",\n  \"ifcType\": \"IfcWallStandardCase\",\n  \"children\": [\n    {\n      \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/317235853294\",\n      \"objectId\": 317235853294,\n      \"globalId\": \"3PhkPD2_j2ouX4hJTk7FKE\",\n      \"name\": \"2F\",\n      \"ifcType\": \"IfcBuildingStorey\"\n    }\n  ],\n  \"parent\": {\n    \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/317235853294\",\n    \"objectId\": 317235853294,\n    \"globalId\": \"3PhkPD2_j2ouX4hJTk7FKE\",\n    \"name\": \"2F\",\n    \"ifcType\": \"IfcBuildingStorey\"\n  },\n  \"type\": {\n    \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/types/317235940695\",\n    \"objectId\": 317235940695,\n    \"globalId\": \"3qd5RL4ZTA7w3kEKe\",\n    \"name\": \"Basic Wall:0-LBA\",\n    \"ifcType\": \"IfcWallType\"\n  },\n  \"systems\": [\n    {\n      \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289\",\n      \"objectId\": 417235853289,\n      \"globalId\": \"9dYMac7Ar51vpH7fe7CB7F\",\n      \"name\": \"\",\n      \"ifcType\": \"IfcSystem\"\n    }\n  ],\n  \"zones\": [\n    {\n      \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289\",\n      \"objectId\": 417235853289,\n      \"globalId\": \"9dYMac7Ar51vpH7fe7CB7F\",\n      \"name\": \"\",\n      \"ifcType\": \"IfcZone\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/products/417235853289\",\n      \"objectId\": 417235853289,\n      \"globalId\": \"9dYMac7Ar51vpH7fe7CB7F\",\n      \"name\": \"\",\n      \"ifcType\": \"IfcGroup\"\n    }\n  ],\n  \"layers\": [\n    {\n      \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/layers/\",\n      \"objectId\": 217236997495,\n      \"name\": \"A-WALL-____-OTLN\",\n      \"ifcType\": \"IfcPresentationLayerAssignment\"\n    }\n  ],\n  \"classificationReferences\": [\n    {\n      \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/classification_references/317636045083\",\n      \"objectId\": 317636045083,\n      \"name\": \"Showers\",\n      \"ifcType\": \"IfcClassificationReference\",\n      \"attributes\": {}\n    }\n  ],\n  \"ownerHistory\": {\n    \"url\": \"https://api.catenda.com/v2/projects/67551168422040148d8ae198a321494d/ifc/ownerhistory/617235853043\",\n    \"objectId\": 617235853043,\n    \"name\": \"\",\n    \"ifcType\": \"IfcOwnerHistory\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "sI7q6ZxE0bz7qMoh28OQ-"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}