Skip to main content
Question

What is the minimum time delta for unshared_at for shared link?

  • May 22, 2025
  • 4 replies
  • 28 views

Forum|alt.badge.img

What's the minimum time delta required for unshared_at field when creating a shared link on a file or folder? https://developer.box.com/reference/put-files-id--add-shared-link/#param-shared_link-unshared_at

I tried with a 1 day time delta and it works, but 1 minute time delta doesn't.

4 replies

Forum|alt.badge.img

Was using UTC timezone with the python SDK. Using America/Los Angeles tz as suggested in the sdk documentation worked with even 5 seconds


Forum|alt.badge.img

Hey Steve, 

I'm not sure off the top of my head what the answer is, but am looking into it! Will follow up soon :) 

Best, 

Kourtney


Forum|alt.badge.img

Good Morning Steve, 

I confirmed with our engineering team that the minimum can technically be the current time, which of course is not recommended. If I've understood correctly, you're able to set a shorter value via the python sdk than you are able to hitting the endpoint directly? 

Best, 

Kourtney

 


Forum|alt.badge.img

I didn't try hitting the endpoint directly. Was just using the python SDK wrongly. After reading through the documentation on the python SDK for the API was able to resolve my issue by using America/Los Angeles timezone instead of UTC when setting the expiration date on the shared link.

 

Thanks Kourtney.