You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

developerscorpio's avatar
developerscorpio
Explorer | Level 3
2 years ago

Get a temporary link to stream content of a team folder file

Hello,

 

Can you please help, How we can Get a temporary link to a team folder file? We have files under team folders and want to generate a link to get the files. Same as we do for user folders using /get_temporary_link

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi developerscorpio,

    First, keep in mind that temporary link cannot point to a folder! If you need link to a folder (and indirectly to files within that folder) you have to use shared link created using /2/sharing/create_shared_link_with_settings. To the parameter "path" of endpoint /2/files/get_temporary_link you can pass a file path only. Both of these endpoints are user endpoints and by default their paths are relative to the user folder in account. For team accounts with spaces configuration that means only one subfolder (the member subfolder) in account root. To be able access something outside the member folder you need to set the actual account root using Dropbox-API-Path-Root header. Once passed this header, the paths passed to user endpoints (not limited to the previous) are relative to the corresponding namespace (usually account root). In such a way you would be able access everything accessible in particular account (including creating different types of links).

    Hope this helps.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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 or Facebook.

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!