We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
TalesCreator
2 years agoNew member | Level 2
Existing integration loading files from specific path stopped working suddenly saying path not_found
I had an existing dropbox API integration that had worked fine for a few years. We had not made any code change nor file / permission changes, and the integration abruptly started to return error of ...
TalesCreator
2 years agoNew member | Level 2
Upon further examination; it appears that only files from older (e.g., 2022) are unable to be looked up via API while newer files (e.g., 2024-07-01) are able to be loaded fine.
Greg-DB
Dropbox Community Moderator
2 years agoTalesCreator Are you perhaps on a team that recently migrated to the team space configuration? Please note that by default, API calls to the Dropbox API operate in the "member folder" of the connected account, not the "team space". That means that by default, the contents of the team space will not be found, and uploads will go to your member folder.
You can configure API calls to operate in the "team space" instead though, in order to interact with files/folders in the team space, if needed/desired. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on how to use this in the Team Files Guide.
- TalesCreator2 years agoNew member | Level 2
I have been accessing a team folder as a member using these headers:
headers = {"Dropbox-API-Select-User": "dbmid:Abcde...","Dropbox-API-Path-Root":'{".tag": "namespace_id", "namespace_id": "123456..."}',}dropbox.Dropbox(oauth2_access_token="...",oauth2_access_token_expiration=...,oauth2_refresh_token="...",app_key="...",app_secret="...",headers=headers,)Are you thinking that perhaps something happened to my team/member setup and the files are no longer being saved to the team folder?- Greg-DB2 years ago
Dropbox Community Moderator
It sounds like your team may have migrated to the updated team space configuration. I see you were accessing a specific namespace ID, though that may be out of date.
There a number of different ways of using this functionality depending on what you want to do, but if you want to operate in your team space, I suggest using the "root" mode instead of the "namespace_id" mode. The Team Files Guide and Path Root Header Modes documentation covers this in more detail.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!