- Retrieve entities using a query string
Lists entities that match the query in a request body.
operator field. Relation filters do not support operators. fulltext filter.AND, OR).- Required -
type,operator,children - Example -
{"type": "Composite", "operator": "AND", "children": [...]}
Negates a child filter.
- Required -
type,child - Example -
{"type": "Not", "child": {"type": "Definition", "operator": "Equals", "name": "M.Asset"}}
Filters entities by a property value.
- Required -
type,property,operator,value,data_type - Optional -
culture(for localized properties) - Valid
data_typevalues -String,Int,Long,Decimal,Float,DateTime,DateTimeOffset,Bool - Example -
{"type": "Property", "property": "Title", "operator": "Contains", "value": "example", "data_type": "String"}
Filters entities by a relation. The operator field is not applicable to Relation filters. If included, it will be ignored and will not affect query results. For a detailed example, see Relations.
- Required -
type,relation - Optional -
parent_idorchild_id - Example -
{"type": "Relation", "relation": "FinalLifeCycleStatusToAsset", "parent_id": 543}
Filters entities by the user who created them.
- Required -
type,user_id - Example -
{"type": "CreatedBy", "user_id": 123}
Filters entities by the user who last modified them.
- Required -
type,user_id - Example -
{"type": "ModifiedBy", "user_id": 456}
Filters entities by their secured ancestor.
- Required -
type,ancestor_id - Example -
{"type": "SecuredAncestors", "ancestor_id": 789}
Filters entities by their ID.
- Required -
type,operator,value - Example -
{"type": "Id", "operator": "Equals", "value": 12345}
Filters entities by their identifier.
- Required -
type,operator,value - Example -
{"type": "Identifier", "operator": "Equals", "value": "my-unique-identifier"}
Filters entities by their entity definition.
- Required -
type,operator,name - Example -
{"type": "Definition", "operator": "Equals", "name": "M.Asset"}
Filters entities by the modules they belong to.
- Required -
type,modules - Example -
{"type": "Modules", "modules": ["M.DAM", "M.PCM"]}
Filters entities by their creation date.
- Required -
type,operator,value(ISO 8601 format) - Example -
{"type": "CreatedOn", "operator": "GreaterThan", "value": "2024-01-01T00:00:00Z"}
Filters entities by their last modification date.
- Required -
type,operator,value(ISO 8601 format) - Example -
{"type": "ModifiedOn", "operator": "LessThan", "value": "2024-12-31T23:59:59Z"}
The query request.
{ "filter": { "type": "Composite", "operator": "AND", "children": [ … ] }, "skip": 0, "take": 1, "sorting": [ { … } ] }
Represents the configuration for loading an entity.
{ "load_entities": true, "property_option": { "load_option": "None", "properties": [] }, "relation_option": { "load_option": "Custom", "relations": [ … ] }, "culture_option": { "load_option": "All", "cultures": [] } }
- https://your-serverhttps://your-server/api/entities/query
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json-patch+json
- application/json
- text/json
- application/*+json
curl -i -X POST \
https://your-server/api/entities/query \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-H 'X-ApiVersion: 3' \
-d '{
"query": {
"filter": {
"type": "Composite",
"operator": "AND",
"children": [
{
"type": "Definition",
"operator": "Equals",
"name": "M.Asset"
},
{
"type": "Relation",
"relation": "FinalLifeCycleStatusToAsset",
"parent_id": 543
}
]
},
"skip": 0,
"take": 1,
"sorting": [
{
"field_type": "Property",
"field": "created_on",
"culture": "en-us",
"order": "Desc"
}
]
},
"load_configuration": {
"load_entities": true,
"property_option": {
"load_option": "None",
"properties": []
},
"relation_option": {
"load_option": "Custom",
"relations": [
{
"name": "AssetToAssociatedCollections"
}
]
},
"culture_option": {
"load_option": "All",
"cultures": []
}
}
}'Successful operation
{ "scroll_id": "string", "items": [ { … } ], "total_items": 0, "returned_items": 0, "offset": 0, "next": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "previous": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false } }