cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"invalid_revision" error while restoring deleted file through API

"invalid_revision" error while restoring deleted file through API

AmanSingh
Explorer | Level 3

Hi,

Using Dropbox Java SDK v4.0.1 for development. I am trying to restore deleted files using - 

files().restore(path, rev)

But its throwing an error "invalid_revision".
I am getting path from metadata for deleted file in listFolder() with includeDeleted = true.
And I am getting rev from listRevisions() for the file. Getting the latest revision from that list.

Is this API correct to do this task or is there anything to help ?

Thanks
Aman

1 Reply 1

Greg-DB
Dropbox Staff

I'm closing this as a duplicate in favor of your existing thread.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?