cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

API V2 : Metadata of file which is moved to other folder.

API V2 : Metadata of file which is moved to other folder.

ankitbtrivedi
New member | Level 2

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 1

Greg-DB
Dropbox Staff
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.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?