Requires scope: business or payroll.
Retrieves all organizational units (offices, department groups, and departments) in a hierarchical tree structure. For a hospitality group, this typically returns each hotel or restaurant as an office, with departments such as Front of House, Kitchen, Housekeeping, and Bar nested underneath.
Security
apiKey(Required scopes: business) or apiKey(Required scopes: payroll)
- Mock serverhttps://beta-developer.dyflexis.com/_mock/openapi/api/department-management/v3/tree
- Productionhttps://app.dyflexis.com/your-tenant/api/department-management/v3/tree
- apiKey
- apiKey
curl -i -X GET \
https://beta-developer.dyflexis.com/_mock/openapi/api/department-management/v3/tree \
-H 'Authorization: YOUR_API_KEY_HERE'OK
Array []
Defines the type of organizational unit
Enum:"office""department_group""department"
Example:"office"
DateTime in UTC ISO 8601 format
Example:"2026-01-01T00:00:00Z"
DateTime in UTC ISO 8601 format
Example:"2026-01-01T00:00:00Z"
An array representing department groups that belong to a specific location.
Response
[ { "id": 1, "name": "string", "type": "office", "created": "2026-01-01T00:00:00Z", "modified": "2026-01-01T00:00:00Z", "addressId": "1", "costCenterId": "123", "costCenterName": "Harborview Grand Hotel", "active": true, "departmentGroups": [ … ], "departments": [ … ] } ]