Files (or unfiles, with folder_id: null) a batch of Leaves and/or standalone reports into a folder. Filing lives at the Leaf level (not the version level), so re-uploading a new version never resets it. Up to 200 items per request. All-or-nothing: any item that does not exist, is owned by another account, or a folder_id from a different workspace fails the whole batch with no partial writes. Requires reports:write. Prefer this over the deprecated POST /api/set-folder, which takes a single legacy path string instead of a batch of typed item references.
Body Parameters
itemsarray of objectsrequired
Show child attributes
namestring
Leaf (group) name.
codestring
Standalone report code.
folder_idstringrequired
Destination folder id, or null to unfile. The key is required even when unfiling: omitting it is a 400, so a misspelled field name cannot silently unfile the whole batch.