Returns the list of teams and company users in the company structure

GET /V1/hierarchy/{id}

Returns the list of teams and company users in the company structure.

Path parameters

  • id integer Required

Responses

GET /V1/hierarchy/{id}
curl \
 -X GET https://magento2.winkelstraat.mac/rest/all/V1/hierarchy/{id}
Response examples (200)
[
  {
    "structure_id": 42,
    "entity_id": 42,
    "entity_type": "string",
    "structure_parent_id": 42,
    "extension_attributes": {}
  }
]
Response examples (401)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}
Response examples (default)
{
  "message": "string",
  "errors": [
    {
      "message": "string",
      "parameters": [
        {
          "resources": "string",
          "fieldName": "string",
          "fieldValue": "string"
        }
      ]
    }
  ],
  "code": 42,
  "parameters": [
    {
      "resources": "string",
      "fieldName": "string",
      "fieldValue": "string"
    }
  ],
  "trace": "string"
}