cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know more about how Community ideas impact Dropbox development? Check it out here

Discuss Dropbox Developer & API

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

invalid_revision error while restoring file version through api

invalid_revision error while restoring file version through api

AmanSingh
New member | Level 2

 

I am trying to restore file to an older versiScreenshot 2021-11-25 101146.jpgon through API but it throws the error as shown in the picture.
What can be best solution to use through API ?

Hope for the quick reply.

Thanks & Regards
Aman

1 Reply 1

Re: invalid_revision error while restoring file version through api

Greg-DB
Dropboxer

The /2/files/restore endpoint is the right way to restore a previous version of a file. An 'invalid_revision' error like that should indicate that the value you supplied in the "rev" parameter isn't usable though, e.g., it's not an actual revision value, or it refers to a version that cannot be restored (e.g., because it doesn't exist anymore).

 

If something's not working as expected/documented, I'll be happy to look into it, but I'd need some more information. In that case, reply with:

  • the name and version number of the SDK/library you are using, if any
  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
  • the full text of any error or unexpected output
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?