cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I copy a shared folder to another folder using API ?

Can I copy a shared folder to another folder using API ?

ClaudeElements
Helpful | Level 5

Hi,

I wanted to know if we can copy a shared folder to in another folder using SDK API.

I shared XYZ folder from account A to account B. Then, from account B, I tried to copy 'XYZ' folder to some 'ABC' folder using 

DbxUserFilesRequests.copy()

method. But I am getting  `cannot copy shared folder` error. 

I tried giving Full Dropbox permission to my app but still it failed.
Is it possible to copy a shared folder using API ?

Thanks

1 Accepted Solution

Accepted Solutions

Re: Can I copy a shared folder to another folder using API ?

Greg-DB
Dropboxer

You can copy shared folders using the API. To do so in the Java SDK, you'll need to use DbxUserFilesRequests.copyV2Builder to get a CopyV2Builder so that you can call CopyV2Builder.withAllowSharedFolder with true to allow that operation.

View solution in original post

2 Replies 2

Re: Can I copy a shared folder to another folder using API ?

Greg-DB
Dropboxer

You can copy shared folders using the API. To do so in the Java SDK, you'll need to use DbxUserFilesRequests.copyV2Builder to get a CopyV2Builder so that you can call CopyV2Builder.withAllowSharedFolder with true to allow that operation.

View solution in original post

Re: Can I copy a shared folder to another folder using API ?

ClaudeElements
Helpful | Level 5

It worked. Thank you so much Greg.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    ClaudeElements Helpful | Level 5
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?