Advanced Query
POST https://{{et_subdomain}}.rest.marketingcloudapis.com/asset/v1/content/assets/query
https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/assetAdvancedQuery.htm
A complex query is comprised of two or more simple queries joined with an AND or OR logical comparison operator. The simple queries are contained in a leftOperand JSON field and rightOperand JSON field. A third field, the logicalOperator, is used to compare the two operands. You can also embed queries inside other queries.
Request Body
{"page"=>{"page"=>1, "pageSize"=>50}, "query"=>{"leftOperand"=>{"property"=>"createdDate", "simpleOperator"=>"greaterThan", "value"=>"2019-07-18T13:35:27.327-06:00"}, "logicalOperator"=>"AND", "rightOperand"=>{"property"=>"assetType.name", "simpleOperator"=>"equal", "value"=>"png"}}, "sort"=>[{"property"=>"id", "direction"=>"ASC"}], "fields"=>["enterpriseId", "memberId", "thumbnail", "category", "content", "data"]}
RESPONSES
status: OK
{"count":1,"page":1,"pageSize":50,"links":{},"items":[{"id":753117,"customerKey":"7a1bc7aa-e6bb-4cf3-b8b6-dde640df8e64","assetType":{"id":28,"name":"png","displayName":"Image"},"name":"experts-logo.png","enterpriseId":1447640,"memberId":1447640,"thumbnail":{"thumbnailUrl":"/v1/assets/753117/thumbnail"},"category":{"id":516016,"name":"Content Builder","parentId":0},"modelVersion":2}]}