Announcements
Known issues updated. Learn more
Highlighted

Downloading/getting file metadata of files that are located in a team folder

Explorer | Level 4

I'm using Java Dropbox v2 SDK version 3.1.0(latest) and I think it is either missing very basic functionality or I'm missing something.

I've got files located in a team folder(shared folder). I'm trying to get those files metadata/download them using file id/path and I encounter an error of path_not_found. From my research regarding this issue I've realized that I have to add a special header called "Dropbox-API-Path-Root" with the relevant namespace id to retrieve metadata/download files from that folder. So I want to know if there is any way to add this header to download/get_metadata requests using the Java SDK(I couldn't find how to do it)? Or the only way to do it is by implementing REST client by myself?

Thanks

2 Replies

Re: Downloading/getting file metadata of files that are located in a team folder

New member | Level 2

I encountered the same problem, the answer will be helpfull for me too.

Reply
Loading...

Re: Downloading/getting file metadata of files that are located in a team folder

Dropboxer

Based on your question, it looks like you've already read it, but the Namespace Guide is a worthwhile resource on this topic. 

There's a method in the Java SDK that can help with this called withPathRoot

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post