Asset scroll searches provide a means of scrolling one way through search results of any number of Asset resources.
Page size can stil be specified, but a scroll search will always proceed sequentially once through each page.
The AssetScrollSearch.scrollId in the search the response is used to continue the scroll search.
Security
bearerToken
The maximum number of items to return in the result set.
Default:100
Example:100
Default:"SEARCH_FOR_VIEW"
Enum:"SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_PENDING_APPROVAL""SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_LIVE""SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_BINNED""SEARCH_FOR_DELETE""SEARCH_FOR_EDIT""SEARCH_FOR_PROMOTE_TO_LIVE""SEARCH_FOR_SEND_FOR_APPROVAL""SEARCH_FOR_VIEW"
Example:"SEARCH_FOR_VIEW"
- Productionhttps://api-v2.dash.app/asset-scroll-searches
- Staginghttps://api-v2.dashstaging.app/asset-scroll-searches
curl -i -X POST \
https://api-v2.dash.app/asset-scroll-searches \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pageSize": 100,
"criterion": {
"type": "MATCH_ALL"
},
"sorts": [
{
"field": {
"type": "FIXED",
"fieldName": "DATE_LIVE"
},
"order": "DESC"
}
]
}'Success
The requested page of Asset resources which match the search criterion
The total number of Asset resources which match the search criterion
Example:1337
The ID used to continue the AssetScrollSearch
Example:"58b0d88b-d0c9-47fc-9038-7195b234cc0b"
Response
- STAGED
- PENDING_APPROVAL
- LIVE
- BINNED
{ "results": [ { … } ], "totalResults": 1337, "scrollId": "58b0d88b-d0c9-47fc-9038-7195b234cc0b" }