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?

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
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.