GET
/api-v1/organization/tree/{id}
curl \
--request GET 'https://wyzio.app/api-v1/organization/tree/{id}' \
--header "TARGET-ORGANIZATION-ID: 42" \
--header "WEAL-TOKEN: string"
Response examples (200)
[
{
"availableEmployees": [
{
"email": "string",
"id": 42,
"name": "string"
}
],
"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"
}
],
"subUserContactId": 42
}
]