We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Artyom L
3 years agoExplorer | Level 3
Search V2 API
Hi! I am building Dropbox integration. Currently working with the search. I am using https://api.dropboxapi.com/2/files/search_v2 api. For tests now I am using basic plan. In the documentation it say...
Artyom L
3 years agoExplorer | Level 3
Hi. Thanks for the response. Yes Dropbox-API-Path-Root is header not param you are right. I get this "error_summary": "no_permission/" error when I am making request from postman. I just take postman collection for Dropbox api, made call to https://api.dropboxapi.com/2/files/search_v2 POST endpoint.
Здравко
3 years agoLegendary | Level 20
Artyom L, You still didn't post anything related to how/what you have posted, using your POSTMAN, in details! 🤷 Also what is the account you're using? You make me speculate. Don't use such header on individual account. Where have you taken the namespace id from in use as header value? 🧐 Is it certain context account has access to that namespace? 🤔
Typically, as I mentioned before, you need to use such header when you need access outside team member folder (the access is restricted to there by default). In such a case you typically need access to the team root space; all team members have access to there. Once you have access to the team root, you can access everything particular member has access to. Of course, you can use another namespace, but make sure in advance that context have permission to access there!
Try following: First call /2/users/get_current_account (without additional headers, including without Dropbox-Api-Path-Root). You will find there a field named "root_namespace_id" residing in "root_info". It's a numerical value. Make sure your account is team account (there are fields like "team" or "team_member_id"). At the end, call /2/files/search_v2 with header "Dropbox-Api-Path-Root: <namespace ID>", where <namespace ID> is the numerical value you got before. Also pass "Dropbox-API-Select-User: <team_member_id>" header, where <team_member_id> is the value of corresponding field. 🙋 Does it work now?
Good luck.
- Artyom L3 years agoExplorer | Level 3
There are no any specific details about my postman request. Just default request from dropbox api collection. Yes, I am using /2/users/get_current_account endpoint to get my account info. Since my current plan is free aka basic, my account is not a team account. I have Dropbox-Api-Path-Root where I put my namespace id but I don't have Dropbox-API-Select-User since my account is not a team account and so I don't get team_member_id from /2/users/get_current_account endpoint. Hence my question - can I use /2/files/search_v2 endpoint without Dropbox-API-Select-User header? Thks
- Здравко3 years agoLegendary | Level 20
Artyom L wrote:... Since my current plan is free aka basic, my account is not a team account. ... Hence my question - can I use /2/files/search_v2 endpoint without Dropbox-API-Select-User header? Thks
Seems you read my posts... no very consistently (if could be said so). 🤦
Ok... I will repeat: For individual account (including basic), you shouldn't use such headers (both Dropbox-Api-Path-Root and Dropbox-API-Select-User) - they are incompatible! Even more you don't need them!!! Why at all you are trying this for basic account? There is one namespace only, it's the default one, and it cannot be changed. 🤷 Even if it was possible, it would stay meaningless.
- Artyom L3 years agoExplorer | Level 3
it seems you are right thks
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!