GET
/api-v1/organization/tree/{id}
curl \
--request GET 'https://wyzio.app/api-v1/organization/tree/{id}' \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42"
Response examples (200)
[
{
"id": 42,
"organizationId": 42,
"parentOrganizationId": 42,
"name": "string",
"isActive": true,
"roles": [
{
"id": 42,
"type": "ROLE",
"name": "string",
"isDefault": true
}
],
"globalRoles": [
{
"id": 42,
"type": "ROLE",
"name": "string",
"isDefault": true
}
],
"availableRoles": [
{
"type": "ROLE",
"name": "string",
"isDefault": true,
"description": "string",
"id": 42,
"realId": 42,
"roleType": "ORGANIZATION"
}
],
"subUserContactId": 42,
"availableEmployees": [
{
"id": 42,
"name": "string",
"email": "string"
}
]
}
]