What is the minimum time delta for unshared_at for shared link?
AnsweredWhat'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.
-
Official comment
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
Comment actions -
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
-
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.
Please sign in to leave a comment.
Comments
4 comments