Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

terezakloboucek's avatar
terezakloboucek
Helpful | Level 5
7 years ago
Solved

Method Create_shared_link_with_settings

Hello folks,

1) Is the method  create_shared_link_with_settings up to date? When I compare the settings with the settings in the front-end, it is not the same. For example the user can disable downloads in the front-end, while via API the user can set up only the viewer/editor/max access.

2) What are the possible combinations of "requested visibility" and "RequestedLinkAccessLevel"? When I use the value "editor" with any possible value in the field "requested visibility", the error "invalid settings" is returned.

Thank you in advance.

Tereza

  • 1) The functionality available on the API can sometimes lag behind the functionality in the product. The Dropbox API doesn't currently offer the ability to set a link to disallow downloads, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

    2) Apologies for the confusion. The 'RequestedLinkAccessLevel.editor' option for 'SharedLinkSettings.access' isn't supported for standard files. It's meant for cloud-based documents, such as Google Docs listed in Dropbox.

3 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    1) The functionality available on the API can sometimes lag behind the functionality in the product. The Dropbox API doesn't currently offer the ability to set a link to disallow downloads, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

    2) Apologies for the confusion. The 'RequestedLinkAccessLevel.editor' option for 'SharedLinkSettings.access' isn't supported for standard files. It's meant for cloud-based documents, such as Google Docs listed in Dropbox.

  • terezakloboucek's avatar
    terezakloboucek
    Helpful | Level 5
    7 years ago

    Greg, thank you very much for your fast reply! If every service/app had support like Dropbox, users would be in heaven.

    Regards

    Tereza

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    The Dropbox API now supports enabling/disabling the download restriction on a shared link via the SharedLinkSettings.allow_download setting on /2/sharing/create_shared_link_with_settings and /2/sharing/modify_shared_link_settings (and corresponding methods in the official SDKs).

    You can also check the setting for a shared link via the SharedLinkMetadata.link_permissions.allow_download field, such as returned by /2/sharing/list_shared_links or /2/sharing/get_shared_link_metadata  (and corresponding methods in the official SDKs).

About Dropbox API Support & Feedback

Node avatar for 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!