---
search:
  tags:
    - Architecture
    - GET
seo:
  description: >-
    Securit… Reference for the GET
    /v1/warehouses/{warehouseId}/architectureElements/{elementId}/hierarchy/children
    endpoint in the Bpanda REST API (experimental).
sidebar:
  label: List the direct parts of an element in the Composition hierarchy.
  badge: GET
title: List the direct parts of an element in the Composition hierarchy.
type: openapi-operation
---
List the direct parts of an element in the Composition hierarchy.
    The parts are the elements the given element composes. Each node carries its whole (the given element), depth 1
    and whether it has parts itself.

**Security:** Any user holding a Bpanda licence for the process space.

`GET /v1/warehouses/{warehouseId}/architectureElements/{elementId}/hierarchy/children`

**Responses**

- `200` — The direct parts
- `403` — The edition of this process space does not include the element's type
- `404` — Element not found

Response example, 200:

```json
{
  "nodes": [
    {
      "depth": 0,
      "element": {
        "conceptualClass": "ApplicationCollaboration",
        "created": {
          "at": "string",
          "by": "string"
        },
        "elementId": "string",
        "hasPredecessor": true,
        "id": "string",
        "layer": "ApplicationLayer",
        "modified": {
          "at": "string",
          "by": "string"
        },
        "owners": [
          {
            "type": "GroupId",
            "value": "string"
          }
        ],
        "principalIsOwner": true,
        "properties": [
          {
            "meta": {
              "key": "string",
              "label": "string"
            },
            "value": "string"
          }
        ],
        "published": {
          "at": "string",
          "by": "string"
        },
        "representation": {
          "type": "string"
        },
        "specialization": "string",
        "validityState": "Draft",
        "visibility": {
          "lastChange": {
            "at": "string",
            "by": "string"
          },
          "visible": true
        }
      },
      "hasChildren": true,
      "parentElementId": "string"
    }
  ]
}
```
