Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
aaqrabaw
8 years agoNew member | Level 2
how to know my doc path in dropbox so i can call list_rev API URL
how to know my doc path in dropbox ? so i can call `https://api.dropboxapi.com/2/files/list_revisions` my json body for the request is : { "path": "/root/", "mode": "path", "li...
- 8 years ago
i found the solution , i can get paper rev from :
URL :
URL : https://api.dropboxapi.com/2/paper/docs/get_metadata
data : {
"doc_id": "<doc id>"
}
aaqrabaw
8 years agoNew member | Level 2
i found the solution , i can get paper rev from :
URL :
URL : https://api.dropboxapi.com/2/paper/docs/get_metadata
data : {
"doc_id": "<doc id>"
}
- Greg-DB8 years ago
Dropbox Community Moderator
[Cross-linking for reference: https://stackoverflow.com/questions/48367992/how-to-know-my-doc-path-in-dropbox-so-i-can-call-list-rev-api-url ]
The /2/files/list_revisions endpoint accepts a file path or ID, and returns the file revisions for that specified file. To get the file path/ID, you can get file metadata via a number of other endpoints, e.g., /2/files/list_folder[/continue], or /2/files/get_metadata. You should use the `id` or `path_lower` value from the returned FileMetadata object(s).
For example, to list every file/folder in the root of the account, you would use /2/files/list_folder[/continue] with path "" (empty string) to identify the root.
Note that files and Paper documents are separate. You can't use /2/files/list_revisions for Paper documents.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!