Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Bob D.20
10 years agoNew member | Level 1
Obtaining shared link from VBA (API v2) - 409 Conflict
I have the following code which I modified slightly from this link. The return is a 409 Conflict error. I believe the issue lies in how I'm structuring the path string, but I admit to this being well...
Greg-DB
Dropbox Community Moderator
10 years agoWhen supplying the path argument for the file, you do need to supply the full path, including any parent folders. In the sample, the file was presumed to be in the root, but for your case you would need to supply the full "/Desktop Work File/33602DOX.pdf".
Your original code was:
arg = "{"path": "/" & filename & "}"
So, that would need to be something like:
arg = "{"path": "/" & path & "/" & filename & "}"
That should work out to what you have in your followup:
{"path": "/Desktop Work File/33602DOX.pdf"}
Is that also giving the same exact "path/not_found" error? (There are other kinds of path errors.) You should also make sure you're connected to the account you intend.
You can use /2/users/get_current_account to check the account. You can use /2/files/list_folder[/continue] to list the contents of a folder. The API Explorer is also a good way to try out the API.
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!