Can anyone shade a light on how to use a Simple Query to request only the required fields of an asset with REST API. According to the documentation we need to include $fields element in the querystring with a value
Comma delimited string of asset properties used to reduce the size of your results to only the properties you need.
I have tried this
$fields='id,name'
but it does not eliminate the other fields.
The same problem exists in advanced query (check the request JSON below). The fields object is completely ignored.
{
"page": {
"page": 1,
"pageSize": 50
},
"query": {
"property": "sssetType.id",
"simpleOperator": "equal",
"value": 23
},
"fields": ["id",
"name",
"assetType",
"createdDate",
"modifiedDate",
"category"],
"sort": [{
"property": "name",
"direction": "ASC"
},
{
"property": "modifiedDate",
"direction": "DESC"
}]
}
Any help would be appreciated.