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
Greg-DB
3 years agoDropbox Staff
There haven't been any recent changes to the API that should have caused uploads to stop working.
Can you print out and share the response you get from the API? If it's not an error, it should contain the metadata of the uploaded file or created folder.
Also, how/where are you checking for the new file/folder? If you're looking on the web site, make sure you're signed in to the relevant account and are looking in the correct location.
By "upgrade", it sounds like you may be referring to your team switching to the "team space" configuration. Note that by default, API calls still operate in the "member folder" of the connected account, not the "team space". So, if you're looking at the Dropbox web site for a file uploaded with the default parameters, make sure you're looking in your member folder. (Alternatively, you can configure API calls to operate in the "team space" instead, if desired. To do so, you'd need to set the "Dropbox-Api-Path-Root" header. You can find information on this in the Team Files Guide.)
- RWMOREY3 years agoHelpful | 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 hereI 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?ThanksRich- Greg-DB3 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
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!