Specific properties
In addition to the generic properties, it is also possible to query for specific named properties.
Root taxonomy item
To query all entities that represent a root taxonomy item, use the IsRootTaxonomyItem
property:
GET http://<HOSTNAME>/api/entities/query?query=IsRootTaxonomyItem
To negate the IsRootTaxonomyItem
property, use an exclamation mark:
GET http://<HOSTNAME>/api/entities/query?query=!IsRootTaxonomyItem
Definition ID
To query for all entities that have a certain definition ID, use the Definition.id property:
GET http://<HOSTNAME>/api/entities/query?query=Definition.Id==22
This property only supports == and != operators.
Definition name
To query for all entities that have a certain definition name, use the Definition.Name property:
GET http://<HOSTNAME>/api/entities/query?query=Definition.Name=='M.Asset'
This property only supports == and != operators.
We recommend to limit queries by including one of the definition restrictions. It improves performance and avoids unexpected results (e.g. a request returns files but you only want assets).
Locked by
To query for all assets locked by a certain user ID, use the LockedBy property:
GET http://<HOSTNAME>/api/entities/query?query=Definition.Name=='M.Asset' AND LockedBy==3
This property only supports == and != operators.
Locked
To query for all locked assets, use the Locked property:
GET http://<HOSTNAME>/api/entities/query?query=Definition.Name=='M.Asset' AND Locked
This property does not support any operators, but can be negated.
Created by
To query for all assets created by a certain user ID, use the CreatedBy property:
GET http://<HOSTNAME>/api/entities/query?query=Definition.Name=='M.Asset' AND CreatedBy==3
This property only supports == and != operators.
Modified by
To query for all assets last modified by a certain user ID, use the ModifiedBy property:
GET http://<HOSTNAME>/api/entities/query?query=Definition.Name=='M.Asset' AND ModifiedBy==3
This property only supports == and != operators.