Hello!
Hope this is just me being silly 🙂
Background: Shared Link expiry is set for all new links at enterprise level by my Admin.
Problem: I want 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'
When I return information on a folder which has no expiring link I see the object end state should be similar to below but struggling to set it using python
"unshared_at": null,
I understand that 'unshared_at' is expecting a date / time format but how can I pass a null date to remove the exisiting date?
tried a few iterations of null, is null, "Null" , 'null' etc but no joy
def getSharedLink():
''' get a shared link for a folder with access set to invited people only '''
folderID = '7***phone number removed for privacy***'
try:
url = sa_client.folder(folder_id=folderID).get_shared_link(
unshared_at='null')
print('The folder shared link URL is: {0}'.format(url))
except BoxAPIException as e:
pr(e)
return
Cheers
Peter