cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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?