Forum Discussion

AmanSingh's avatar
AmanSingh
Explorer | Level 3
4 years ago

"invalid_revision" error while restoring deleted file through API

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

Replies have been turned off for this discussion

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!