Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ankitbhatii1108
5 years agoNew member | Level 2
Geeting error 400 for URL request
when I try to hit https://content.dropboxapi.com/2/files/upload and get id from that for uploaded data I need URL so hit https://api.dropboxapi.com/2/sharing/get_file_metadata but getting 400 erro pl...
- 5 years ago
That error message indicates that the call failed because that /2/sharing/get_file_metadata endpoint doesn't support apps with the "app folder" access type, as noted in the documentation.
I don't have context on your use case, but for reference, if just you want to create a shared link for the uploaded file, you should use /2/sharing/create_shared_link_with_settings instead anyway. That is supported for apps with app folder access type.
Greg-DB
Dropbox Community Moderator
5 years agoCan you print out the response body? It should contain a more specific error message.
ankitbhatii1108
5 years agoNew member | Level 2
here is error i have received
- Greg-DB5 years ago
Dropbox Community Moderator
That error message indicates that the call failed because that /2/sharing/get_file_metadata endpoint doesn't support apps with the "app folder" access type, as noted in the documentation.
I don't have context on your use case, but for reference, if just you want to create a shared link for the uploaded file, you should use /2/sharing/create_shared_link_with_settings instead anyway. That is supported for apps with app folder access type.
About Discuss Dropbox Developer & API
Make connections with 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!