You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: Shared Link expiry is set for all new links at enterprise level by Admin and cannot be switched off.
Problem: I need to auto generate new shared links from my python app with no date expiry but having issues trying to pass a null value in 'unshared_at' field.
When I pass "unshared = None" as suggested in forum the shared link is created but it still pulls the default expiry settings from the tenant level, instead of removing the expiry.
Description of the Issue
Background: Shared Link expiry is set for all new links at enterprise level by Admin and cannot be switched off.
Problem: I need to auto generate new shared links from my python app with no date expiry but having issues trying to pass a null value in 'unshared_at' field.
When I pass "unshared = None" as suggested in forum the shared link is created but it still pulls the default expiry settings from the tenant level, instead of removing the expiry.
refer to developer forum post:
Versions Used
Box Python SDK: 2.3.2
Python: 3.7.3
Steps to Reproduce
Error Message, Including Traceback
No error, the link is created but the admin console setting is superseding the unset value in unshared_at field.
I have tried a few iterations of null, 'is null', "Null" , 'null', None, "None" etc but no luck
sharedLinkURL = sa_client.folder(folder_id=sharedFolderID).get_shared_link(access='collaborators', unshared_at=None)
I have tested using postman (curl export below) and it is possible to do this using simple https request:
curl -X PUT \ <a href="https://api.box.com/2.0/files/<file_id>\" target="_blank">https://api.box.com/2.0/files/<file_id>\</a> -H 'Authorization: Bearer <access_token>' \ -d '{"shared_link": {"access": "Open", "unshared_at":null}}'
The text was updated successfully, but these errors were encountered: