Skip to main content
POST
Undo the Last Move of an Item

Authorizations

Authorization
string
header
required

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

Body

application/json
move_id
string

The id of the move to undo. Give this or path.

path
string

The path the item is at now. Give this or move_id.

resume
boolean

Folders only: true on the calls that carry on an undo the first call began.

after
string

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

Response

Moved back. ok, source, destination, kind, undone (the move that was undone), move_id (this undo's own id, or null), shares_followed, replaced_not_restored (true when the original move had replaced a file that is not restored), inferred (true when the original move was inferred and not confirmed) 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
undone
string
move_id
string | null
shares_followed
integer
replaced_not_restored
boolean
inferred
boolean
done
boolean
moved
integer
skipped
integer
next
string
resume
boolean