We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
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,877 PostsLatest Activity: 6 hours 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!