Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

aagg1's avatar
aagg1
New member | Level 2
2 months ago

Cannot create shared link with "editor" access

Hi,

I'm trying to auto-create shared links for folders created via the API. The issue is as soon as I change the "access" to anything but "viewer", I get an error.

Sample request:

POST https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings:

{
    "path": "/test",
    "settings": {
        "audience": "public",
        "access": "editor",
        "allow_download": true
    }
}

Returns a 409:

{
    "error_summary": "settings_error/invalid_settings/..",
    "error": {
         ".tag": "settings_error",
         "settings_error": {
            ".tag": "invalid_settings"
         }
   }
}

The payload conforms to the docs, so can't understand what the issue is.

Appreciate any support on this.

3 Replies

  • aagg1's avatar
    aagg1
    New member | Level 2
    2 months ago

    Thanks for the clarifying! I hope the docs get updated with this important information.

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 months ago

    aagg1​ 

    Thanks for your patience while we looked into this. Our engineering team reviewed the issue and confirmed that the error occurs because both parameters you’re including conflict with each other.

    Specifically, you can’t specify the "allow_download" field when attempting to create an edit link ("access": "editor"). Any user who accesses an edit link automatically has permission to download and modify the content, so including that field causes a conflict.

    If you remove the "allow_download" field from your request, it should work as expected.

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 months ago

    Hi aagg1​ 

    Thanks for the report! We're investigating this API issue. We'll follow up here once we have an update.

About Discuss Dropbox Developer and API

Node avatar for Discuss Dropbox Developer and API
Explore Dropbox Developer & API discussions with developers like you.

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!