cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

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 list_rev API URL

aaqrabaw
New member | Level 2
Go to solution

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",
    "limit": 10
    }
what i'm trying to do is to list all rev for all doc im my Dropbox , but i'm getting `"error_summary": "path/malformed_path/",`

1 Accepted Solution

Accepted Solutions

aaqrabaw
New member | Level 2
Go to solution

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>"
}

View solution in original post

2 Replies 2

aaqrabaw
New member | Level 2
Go to solution

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-DB
Dropbox Staff
Go to solution

[Cross-linking for reference: https://stackoverflow.com/questions/48367992/how-to-know-my-doc-path-in-dropbox-so-i-can-call-list-r... ]

 

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    aaqrabaw New member | Level 2
What do Dropbox user levels mean?