0

I would like to get Assets (only SMS) via Content Builder API.

I tried using the route asset/v1/content/assets/query with something like below :

{
"page": {
    "page": 1,
    "pageSize": 50
},
"query": {
    "leftOperand": {
        "property": "createdDate",
        "simpleOperator": "greaterThan",
        "value": "2020-07-18T13:35:27.327-06:00"
    },
    "logicalOperator": "AND",
    "rightOperand": {
        "property": "availableViews",
        "simpleOperator": "IN",
        "value": "[sMS]"
    }
},
"sort": [
    {
        "property": "id",
        "direction": "DESC"
    }
],
"fields": [
    "enterpriseId",
    "memberId",
    "thumbnail",
    "category",
    "content",
    "data",
    "views",
    "channels"
]}

The property "availableViews" is an array so I'm wondering how using Rest API we can apply a filter.

Note: I noticed that filtering using "AssetType ID = 230" is unfortunately for SMS & Push as well.

Thanks,

Your Answer

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

Browse other questions tagged or ask your own question.