Get organizations tree for a contact

GET /api-v1/organization/tree/{id}

Headers

Path parameters

  • id integer Required

    id

Responses

GET /api-v1/organization/tree/{id}
curl \
 -X GET http://10.10.10.132/api-v1/organization/tree/{id} \
 -H "TARGET-ORGANIZATION-ID: 42" \
 -H "WEAL-TOKEN: string"
Response examples (200)
[
  {
    "availableRoles": [
      {
        "description": "string",
        "id": 42,
        "isDefault": true,
        "name": "string",
        "realId": 42,
        "roleType": "ORGANIZATION",
        "type": "ROLE"
      }
    ],
    "globalRoles": [
      {
        "id": 42,
        "isDefault": true,
        "name": "string",
        "type": "ROLE"
      }
    ],
    "id": 42,
    "isActive": true,
    "name": "string",
    "organizationId": 42,
    "parentOrganizationId": 42,
    "roles": [
      {
        "id": 42,
        "isDefault": true,
        "name": "string",
        "type": "ROLE"
      }
    ]
  }
]