Announcements
Known issues updated. Learn more
Highlighted

Mount a folder from a shared link

Level 3

I have an app with full dropbox access.

1. I poll for changes and wait until some folder is shared with me (/list_folder/longpoll)

2. I get notified when some folder was shared with me (via /list_folder/longpoll)

3. I want to mount that shared folder. But not sure how to do it.

If I check list_folder with cursor, I dont get shared folder because it is not mounted yet and list_folder returns only mounted folders (?)

There is list_mountable_folders as well. But I dont have a valid cursor to get only "new" mountable folders.


What would be the flow to "fetch" only new mountable folders? :}

 

1 Accepted solution

Accepted Solutions

Re: Mount a folder from a shared link

Dropboxer

First, to clarify your post's title, it's not possible to mount a shared folder from a "shared link". There are a few different types of sharing on Dropbox, and they work differently.

The term "shared links" refers to the ability to send a link to any file or folder. These cannot be "mounted".

The term "shared folders" refers to the ability to share a folder with another Dropbox user, and allow them to view or edit the contents. These folders can be "mounted" in the recipient's account.

Anyway, it sounds like you are referring to the latter functionality. 

To mount a shared folder that you've been invited to, you should use the /2/sharing/mount_folder endpoint. That allows you to specify the shared folder ID of the currently-unmounted shared folder that you want to mount. 

You can list the currently-unmounted folders and get the shared folder IDs for them from /2/sharing/list_mountable_folders[/continue]. (The 'path_lower' value will be absent for unmounted folders.) There isn't a way to monitor for new mountable entries only, but I'll pass this along as a feature request as well.

Reply
Loading...
2 Replies

Re: Mount a folder from a shared link

Dropboxer

First, to clarify your post's title, it's not possible to mount a shared folder from a "shared link". There are a few different types of sharing on Dropbox, and they work differently.

The term "shared links" refers to the ability to send a link to any file or folder. These cannot be "mounted".

The term "shared folders" refers to the ability to share a folder with another Dropbox user, and allow them to view or edit the contents. These folders can be "mounted" in the recipient's account.

Anyway, it sounds like you are referring to the latter functionality. 

To mount a shared folder that you've been invited to, you should use the /2/sharing/mount_folder endpoint. That allows you to specify the shared folder ID of the currently-unmounted shared folder that you want to mount. 

You can list the currently-unmounted folders and get the shared folder IDs for them from /2/sharing/list_mountable_folders[/continue]. (The 'path_lower' value will be absent for unmounted folders.) There isn't a way to monitor for new mountable entries only, but I'll pass this along as a feature request as well.

Reply
Loading...

Re: Mount a folder from a shared link

Level 3

thanks for reply.

Ability to monitor new mountable entries would be much appreciated :}

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post