Preview sorting streams into categories
POST
/streams/sort/preview/write Change: creates or edits. Scopes
Where each stream of the selection would go, writing nothing. Each rule matches names that start with, contain or end with text and puts them in category, or in a category named new_category made for it. With unlist_old (the default) a stream leaves the category it was in.
Body
selectionobjectrequiredThe streams a bulk action applies to: the ones ticked (
ids), or every stream the list filters select (all_matching: truewithfilters, which take the list's query parameters), lessexclude.idsstring (uuid)[]all_matchingbooleanDefault:
falsefiltersobjectexcludestring (uuid)[]
rulesobject[]requiredmatchstringDefault:
"starts"textstringrequiredcategorystring (uuid)can be nullnew_categorystring
unlist_oldbooleanDefault:
true
Response
200 OK
totalintegerrequiredmovingintegerrequiredstayingintegerrequiredunmatchedintegerrequiredrefusedintegerrequiredby_categoryobject[]requiredrowsobject[]requiredrefused_rowsobject[]required
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.