Skip to main content
POST
Move or Rename File or Folder

Authorizations

Authorization
string
header
required

ZeroDrive Personal API Key (zdk_), device token, or OAuth 2.0 Bearer token

Body

application/json
source
string
required

Current path of the file or folder.

destination
string
required

New path of the file or folder.

resume
boolean

Folders only: true on the calls that carry on a move the first call began.

after
string

Folders only: the cursor (next) the previous answer gave.

client
string

The command line sends zd; any other value is ignored.

Response

Moved. Always ok, source and destination; also kind (file or folder), shares_followed (share rows that followed the item), move_id (the id of this move in the history, or null when none was written), references_checked (false: a move never looks for files that name the old path; call POST /v1/files/references to look), replaced (true only when a file was replaced) and, for a folder, done, moved, skipped and, while done is false, next and resume true.

ok
boolean
source
string
destination
string
kind
enum<string>
Available options:
file,
folder
shares_followed
integer
references_checked
boolean
replaced
boolean
done
boolean
moved
integer
skipped
integer
next
string
resume
boolean