4

I want to get assets filtered by assetType using request like this:

POST /asset/v1/content/assets/query
"query":
{
        "property":"assetType:id",
        "simpleOperator":"equals",
        "valueType":"int",
        "value":"207"
},

But it returns empty array (I have assets with assetType = 207 in my account). Could you help me and tell how to make it work properly?

1 Answer 1

3

Here's information about the assetType property, and here is a list of the asset types. There hasn't been documentation released yet regarding filtering for these routes, but this should work in the payload:

{
    "query": {
        "property": "assetType.id",
        "simpleOperator": "equals",
        "valueType": "int",
        "value": 207
    }
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .