Operators
The following operators are supported in the REST API:
-
== equal
-
!= not equal
-
gt greater than
-
gte greater than or equal
-
lt less than
-
lte less than or equal
Factors
Use the logical operators OR, or AND to query by multiple factors simultaneously as follows:
RequestResponse
GET http://<HOSTNAME>/api/entities/query?query=String('Title')=='title' AND Bool('IsDraft')
Additionally, you can group factors to express explicit logical precedence as follows:
RequestResponse
GET http://<HOSTNAME>/api/entities/query?query=(Definition.Name == "M.Asset" AND FullText == "a") OR Definition.Name == 'M.File'
Negating
In addition to operators, you can negate factors by preceding them with !. For example, to negate the FinalLifeCycleStatusToAsset condition, use ! and parentheses:
RequestResponse
GET http://<HOSTNAME>/api/entities/query?query=Definition.Name=='M.Asset' AND !(Parent('FinalLifeCycleStatusToAsset').id == 542)