Describes all Organization attributes that have filters.
| Filter Attribute | Filter Type | Available Filters | Reference |
|---|---|---|---|
| id | Id | exact, in | Field Filter Id |
| label | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull | Field Filter String |
| name | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull | Field Filter String |
| createdAt | Date | exact (=), date, year, quarter, month, week, day, hour, minute, second, isnull | Field Filter Date |
| description | String | exact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnull | Field Filter String |
| properties | Object | contains, contained_by, has_key, has_any_keys, has_keys, isnull | Field Filter Object |
| devicesCount | Number | exact (=), range, gt (>), gte (≥), lt (<), lte (≤), isnull | Field Filter Number (Not applicable as related filter) |
| tags | Array | exact, contains, contained_by, overlap, len, isnull | Field Filter Array |
| parent | Id | exact | Returns the direct children of the Organization with this ID |
| descendant_of | Id | exact | Returns the Organization with this ID and every Organization nested below it |
Hierarchy filters
parent and descendant_of read the Organization Hierarchy:
parent=<organization_id>keeps the Organizations nested directly under that one.descendant_of=<organization_id>keeps that Organization and every Organization below it, at any depth. An ID that does not exist returns an empty list.
Both take the Organization ID, not the ~label, combine with the other filters and only return Organizations the caller can see. To list the floors of a building, combine them with a tag:
curl -X GET 'https://nanoview-api.wellairsolutions.com/api/v2.0/organizations/?descendant_of=64a1b2c3d4e5f60001234568&tags__contains=floor' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'To read the whole tree in one request, or only the Organizations of the current user, use Get Organization Hierarchy.
