aquil.abdullah
aquil.abdullah

Reputation: 3157

How do you specify the revision in the path for a Dropbox API "download" request?

The documentation for the Dropbox API download request, which I found here states the following:

rev deprecated String(min_length=9, pattern="[0-9a-f]+")? Field is deprecated. Please specify revision in path instead. This field is optional.

However, I've been unable to find any documentation of what the path with a revision looks like.

Even the Dropbox API Explorer for download shows rev as a parameter for the API request.

Does anyone know how you actually construct a path for the download request, of the Dropbox API that contains the revision?

Upvotes: 0

Views: 124

Answers (1)

Greg
Greg

Reputation: 16930

The 'rev' parameter is deprecated in favor of supplying the rev value in the 'path' parameter instead, as you pointed out. The 'path' parameter supports:

path String(pattern="(/(.|[\r\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)")

Specifically, you would supply a value like rev:abcd1234 where 'abcd1234' is the rev you want to download.

That would look like this in the API v2 Explorer, for example: Example of using the 'rev:' path format in the Dropbox API v2 Explorer

Upvotes: 1

Related Questions