Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
josuegomes
4 years agoHelpful | Level 6
File revisions are not moved
File has several revisions: $ curl "https://api.dropboxapi.com/2/files/list_revisions" --header "Authorization: Bearer <>" --header "Content-Type: application/json" --data '{"limit":10,"mode":"pat...
- 4 years ago
Yes, that's expected. You're using the "id" mode, so it shows the history of the file with the supplied ID across moves, including the revision of the file at each location where it is/was.
Greg-DB
Dropbox Community Moderator
4 years agoThe file revision history doesn't follow a file when it is moved to another path. You can get the file revision history for a file across moves though by setting "mode" to "id" instead of "path" though. Refer to the /2/files/list_revisions documentation for more information.
- josuegomes4 years agoHelpful | Level 6
Using the file id the behavior is even more bizarre. A revision is added after each move. Is this expected?
$ curl "https://api.dropboxapi.com/2/files/list_revisions" --header "Authorization: Bearer " --header "Content-Type: application/json" --data '{"limit":10,"mode":"id","path":"id:teAlu1WEq40AAAAAAAKg9Q"}'
{"is_deleted": false, "entries": [{"name": "ada.jpg", "path_lower": "/work/ver/ada.jpg", "path_display": "/Work/ver/ada.jpg", "id": "id:teAlu1WEq40AAAAAAAKg9Q", "client_modified": "2019-07-30T21:11:19Z", "server_modified": "2022-08-29T20:40:07Z", "rev": "5e76744f356ba003edfac", "size": 99003, "is_downloadable": true, "content_hash": "a1feb184b8b5723de4f3d16e8530c71759c4a569bc368b0ee88a3acdde9310df"}]}
$ curl "https://api.dropboxapi.com/2/files/move_v2" --header "Authorization: Bearer " --header "Content-Type: application/json" --data '{"allow_ownership_transfer":false,"allow_shared_folder":false,"autorename":false,"from_path":"id:teAlu1WEq40AAAAAAAKg9Q","to_path":"/Work/ver/copy/ada.jpg"}'
{"metadata": {".tag": "file", "name": "ada.jpg", "path_lower": "/work/ver/copy/ada.jpg", "path_display": "/Work/ver/copy/ada.jpg", "id": "id:teAlu1WEq40AAAAAAAKg9Q", "client_modified": "2019-07-30T21:11:19Z", "server_modified": "2022-08-29T20:41:50Z", "rev": "5e7674b15c34c003edfac", "size": 99003, "is_downloadable": true, "content_hash": "a1feb184b8b5723de4f3d16e8530c71759c4a569bc368b0ee88a3acdde9310df"}}
$ curl "https://api.dropboxapi.com/2/files/list_revisions" --header "Authorization: Bearer " --header "Content-Type: application/json" --data '{"limit":10,"mode":"id","path":"id:teAlu1WEq40AAAAAAAKg9Q"}'
{"is_deleted": false, "entries": [{"name": "ada.jpg", "path_lower": "/work/ver/copy/ada.jpg", "path_display": "/Work/ver/copy/ada.jpg", "id": "id:teAlu1WEq40AAAAAAAKg9Q", "client_modified": "2019-07-30T21:11:19Z", "server_modified": "2022-08-29T20:41:50Z", "rev": "5e7674b15c34c003edfac", "size": 99003, "is_downloadable": true, "content_hash": "a1feb184b8b5723de4f3d16e8530c71759c4a569bc368b0ee88a3acdde9310df"}, {"name": "ada.jpg", "path_lower": "/work/ver/ada.jpg", "path_display": "/Work/ver/ada.jpg", "id": "id:teAlu1WEq40AAAAAAAKg9Q", "client_modified": "2019-07-30T21:11:19Z", "server_modified": "2022-08-29T20:40:07Z", "rev": "5e76744f356ba003edfac", "size": 99003, "is_downloadable": true, "content_hash": "a1feb184b8b5723de4f3d16e8530c71759c4a569bc368b0ee88a3acdde9310df"}]}
- Greg-DB4 years ago
Dropbox Community Moderator
Yes, that's expected. You're using the "id" mode, so it shows the history of the file with the supplied ID across moves, including the revision of the file at each location where it is/was.
About 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!