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

Forum Discussion

Bin D.1's avatar
Bin D.1
New member | Level 1
9 years ago

create_shared_link_with_settings with expires in setting parameter doesn't work

For the request:

{"path":"/Get Started with Dropbox.pdf","settings":{"requested_visibility":"public","expires":"2016-03-04T14:27:00Z"}}

 

I got the response always, and it passed if I removed expires.

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

 

Known issue?

4 Replies

Replies have been turned off for this discussion
  • Steve M.'s avatar
    Steve M.
    Icon for Dropbox Staff rankDropbox Staff
    9 years ago

    From https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings (expand SharedLinkSettingsError):

    not_authorized Void User is not allowed to modify the settings of this link. Note that basic users can only set RequestedVisibility.public as the SharedLinkSettings.requested_visibility and cannot set SharedLinkSettings.expires

    Is it possible you're attempting this call with a basic user?

  • Bin D.1's avatar
    Bin D.1
    New member | Level 1
    9 years ago

    I use a implicit oauth flow to get a token and call the API, don't know what's "basic user" here.

  • Steve M.'s avatar
    Steve M.
    Icon for Dropbox Staff rankDropbox Staff
    9 years ago

    A basic user is a user with a free Dropbox account. (Paid users are either Pro, Business, or Enterprise users.)

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!