Skip to main content

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.

  • move renames the item; missing parent directories of new_path are 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.
  • copy copies recursively and never overwrites (409 if the destination exists). A missing source returns 424.
  • extract unpacks a .zip, .tar, .tgz, .tar.gz, .tar.xz, .tar.bz2 or .7z archive into the directory that contains it. new_path must 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​

Done. Empty object.