Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
ankitbtrivedi
8 years agoNew member | Level 2
API V2 : Metadata of file which is moved to other folder.
In API v2, Is it possible to obtain Metadata of a file which is moved to different folder using old file path. It was possible in API v1.
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
In API v2, you can look up the information for a "deleted" file (including a file which was actually just moved) using /2/files/get_metadata:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata
If you set include_deleted=true, it will return the metadata for the file at the old location. Note that this will give you a DeletedMetadata object, not the full Metadata object.
If you store the file's ID though, you can get the full current metadata, regardless of its current path, by supplying the ID in the 'path' parameter to /2/files/get_metadata.
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!