POST
/v1/tools/move_filesfreeMove files and folders
Puts files, folders or both in a folder, free: files by their file_ids (from list_files), folders by their ids (fld_…), and the folder's id, or folder none for the top of Files. A file or folder is in one folder at a time; a folder moves with everything in it, never into itself or a folder inside it. A job's files are listed with its job_id; move them together to keep them together.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
file_ids | array | None | |
folder_ids | array | None | Folders to move, by their ids (fld_…) |
folder | string | Required | The folder’s id, fld_…, or none for the top of Files |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/move_files \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"folder":"w/…/file_id"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.