Get organizations tree for a contact
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
GET /api-v1/organization/tree/{id}
curl \
-X GET http://wyzio.app/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"
}
]
}
]