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

Forum Discussion

Karl R.6's avatar
Karl R.6
New member | Level 1
10 years ago

modify_shared_link removing expiration date

Cross posting from http://stackoverflow.com/questions/34728081/modify-shared-link-settings-how-to-remove-expiration 

Basically, I don't see how I can use sharing/modify_shared_link to remove the expiration date from a link. This can be done from the Dropbox web UI, so I'd hope it is possible to do with the API. Any advice would be appreciated.

 

==========

I'm using v2 of the core API with HTTP directly, the method https://www.dropbox.com/developers/documentation/http/documentation#sharing-modify_shared_link_settings . I have no problems changing the visiblity, password and expiration date of a link, but I can't see how to *remove* the expiration entirely.

I've tried

  • not sending 'expires' at all in my request while changing other properties - no effect
  • setting 'expires' to the the JSON literal null - no effect
  • setting 'expires' to a time in the past - gives a 'invalid_settings' error
  • setting 'expires' to an empty string - gives a "time data " " does not match format '%Y-%m-%dT%H:%M:%SZ'" error.

I'm kind of at a loss here, is there something obvious I'm missing?

 

4 Replies

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

    This isn't possible with the current interface unfortunately, but we'll consider this a feature request.

    As a (non-ideal, of course) workaround, you could set the expiration far in the future, e.g., year 9999.

  • Karl R.6's avatar
    Karl R.6
    New member | Level 1
    10 years ago

    Thank you for the prompt reply, Gregory. I had implemented a workaround using that approach as a fallback, so I'll use that and patiently wait for future versions of the API. Thanks!

  • Karl R.6's avatar
    Karl R.6
    New member | Level 1
    9 years ago

    Thanks Gregory, I have implemented this in my application and it works fine. Thank you very much.

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!