Move, copy, or extract
PUT/api/v1/files
Moves or copies the item at path to new_path, or unpacks an archive, depending on action. Returns an empty object. Both are resource paths, so items can go between home, shares and group folders.
moverenames the item; missing parent directories ofnew_pathare created. Shares, file drops, favorites, recent files and activity under the old path follow it. An existing file at the destination is silently replaced; a non-empty directory, a file/directory clash, or the same path returns 409.copycopies recursively and never overwrites (409 if the destination exists). A missing source returns 424.extractunpacks a.zip,.tar,.tgz,.tar.gz,.tar.xz,.tar.bz2or.7zarchive into the directory that contains it.new_pathmust be a writable path but does not choose where the files go. Zip keeps existing files; tar and 7z overwrite them. A non-archive returns 409 and a failing unpack tool 424.
Moves and copies by a signed-in user are logged as activity. The caller needs write access on both sides: their home, a group folder where they are owner or editor, or a writable share; without a session both paths must be writable public link or email shares.
Request
Responses
- 200
- 400
- 403
- 404
- 409
- 423
- 424
Done. Empty object.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.
Request failed.