cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right 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: 

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

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

EvgenyAGRO
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 2

vlad_vavilin
New member | Level 2

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

TaylorKrusen
Dropbox Staff

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    TaylorKrusen Dropbox Staff
  • User avatar
    vlad_vavilin New member | Level 2
What do Dropbox user levels mean?