We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Akansh Gautam
2 years agoExplorer | Level 4
Sharing multiple folder using api
I have dropbox team account
I created multiple folders using batch api for folder create
because creating multiple folders using
dbx_client.with_path_root(
path_root=pr
).sharing_share_folder(path=f"{path}")
always comes up with a async call, I tried with 15 folders sometimes 7 are created sometime 8 this doesn't work properly.
So after using batch api I am trying to share folder with emails in a loop still out of 15 it is only sharing 7 or 8
dbx_client.sharing_add_folder_member(
shared_folder_id=shared_folder_id,
members=[
AddMember(
access_level=AccessLevel(tag=access_level),
member=MemberSelector(
tag="email",
value=email,
),
)
],
)
Are you guys tell me a proper api which can share multiple folders in a single go, I didn't found any
Async calls always miss some folders in sharing. This looks useless.
Help me there asap
Dropbox doesn't offer batch endpoints for sharing multiple folders or adding members to multiple folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
You should avoid making multiple changes at the same time to avoid lock contention, which can cause some to fail.
Whenever an operation returns an async job ID, you should use the corresponding endpoint to check the result of the job, to see if it succeeded or failed and why. For example, for sharing_share_folder you would use sharing_check_share_job_status.
- Greg-DBDropbox Staff
Dropbox doesn't offer batch endpoints for sharing multiple folders or adding members to multiple folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
You should avoid making multiple changes at the same time to avoid lock contention, which can cause some to fail.
Whenever an operation returns an async job ID, you should use the corresponding endpoint to check the result of the job, to see if it succeeded or failed and why. For example, for sharing_share_folder you would use sharing_check_share_job_status.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 6 days 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!