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
RWMOREY
3 years agoHelpful | Level 6
Files Uploaded via PowerShell Script Not Appearing
Hi --
We have a PowerShell script that uploads files to Dropbox but since the Dropbox update / upgrade at the end of last week the files are not appearing on Dropbox. The script does not report...
- 3 years ago
HI --
Ok, I figured out I needed to add "Dropbox-API-Path-Root" to my request header and specify the correct "namespace_id" value for our shared folder so now everything is working again.
Rich
RWMOREY
Helpful | Level 6
Hi --
I made a call to this API end point https://api.dropboxapi.com/2/files/create_folder_v2 with our token in the header and this is the JSON payload
{ "path": "/TLP Software/Release/Staging/CNST/TEST_FOLDER"}
This was the response from your API
{
"metadata": {
"name": "TEST_FOLDER",
"path_lower": "/tlp software/release/staging/cnst/test_folder",
"path_display": "/TLP Software/Release/Staging/CNST/TEST_FOLDER",
"id": "id:7YfNtzu3TBAAAAAAAAAAXg"
}
}
But when I go here
I do not see the "test_folder" that was supposedly created.
However, if I run the same API call again, I get this response
{
"error_summary": "path/conflict/folder/...",
"error": {
".tag": "path",
"path": {
".tag": "conflict",
"conflict": {
".tag": "folder"
}
}
}
}
Which indicates the folder already exists. So the question is, where is it?
I'm wondering if the bearer token we are using is associated with a users Dropbox account / folder structure and so I need to get a token that is for our "Team" folder?
Thanks
Rich
Greg-DB
3 years agoDropbox Staff
Based on the URL of the Dropbox web site you shared, it seems like you're looking at your "team space". The API calls would be operating relative to your "member" folder by default, so you won't see the new files/folders in your team space by default. You'll need to look in your member folder instead. Your member folder is typically given your name, so check for a folder with your name on the web site.
Alternatively, refer to my previous comment for information on how to interact with the team space via the API.
You do not need to make a new access token for this.
- RWMOREY3 years agoHelpful | Level 6
HI --
Ok, I figured out I needed to add "Dropbox-API-Path-Root" to my request header and specify the correct "namespace_id" value for our shared folder so now everything is working again.
Rich
- RWMOREY2 years agoHelpful | Level 6
Why was my comment related to searching for a specific file type move or "merged" into a totally unrelated conversation!? And now the subject of the conversation which was originally "Files-Uploaded-via-PowerShell-Script-Not-Appearing" is now "Re: Searching for a specific file type"
My response was to this thread "https://www.dropboxforum.com/t5/Delete-edit-and-organize/Searching-for-a-specific-file-type/m-p/646072#M35942" because the accepted "solution" does not actually solve the question the user asked.
WTF?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 3 years agoIf 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!