Organization Filters

Describes all Organization attributes that have filters.

Filter AttributeFilter TypeAvailable FiltersReference
idIdexact, inField Filter Id
labelStringexact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnullField Filter String
nameStringexact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnullField Filter String
createdAtDateexact (=), date, year, quarter, month, week, day, hour, minute, second, isnullField Filter Date
descriptionStringexact (case sensitive), iexact (case insensitive), contains, icontains (case insensitive), startswith, istartswith (case sensitive), endswith, iendswith (case insensitive), in (case sensitive), isnullField Filter String
propertiesObjectcontains, contained_by, has_key, has_any_keys, has_keys, isnullField Filter Object
devicesCountNumberexact (=), range, gt (>), gte (≥), lt (<), lte (≤), isnullField Filter Number (Not applicable as related filter)
tagsArrayexact, contains, contained_by, overlap, len, isnullField Filter Array
parentIdexactReturns the direct children of the Organization with this ID
descendant_ofIdexactReturns 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.