Preview renaming many streams
/streams/bulk-edit/rename-preview/write Change: creates or edits. Scopes
What a renaming rule would do to the selection, writing nothing: counts, the first names before and after, the ones refused because the new name is taken, and how many follow a provider's names. The rename itself is a bulk edit with changes.rename. A selection is the streams ticked (ids) or every stream the list filters select (all_matching: true with filters, less exclude).
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)[]
renameobjectrequiredOne renaming rule. Every key is optional; at least one must change something.
remove_codebooleanDefault:
falseremove_qualitybooleanDefault:
falseremove_prefixstring[]remove_suffixstring[]replaceobject[]findstringrequiredtostringpatternbooleanDefault:
false
casestringDefault:
"keep"tidybooleanDefault:
trueadd_prefixstringadd_suffixstringstop_name_syncbooleanDefault:
false
Response
200 OK
totalintegerrequiredchangedintegerrequiredunchangedintegerrequiredrefusedintegerrequiredfollowingintegerrequiredStreams that follow a provider's names.
rowsobject[]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.