Setting Folder Autodelete via API
I wanted to know if there is a way to set the auto delete to On and give a date on a folder using the API. Right now I can only see how to do this through the user interface. I looked closely at the API reference but do not see a function or parameter that allows me to do this. Can someone clarify if this is possible?
-
Hi :
Interesting. I also don't see it. I'd suggest taking it up with Box Support (Contact Box Support). My guess is that it's a gap in the documentation. Box is usually quite good about making APIs available for everything in the UI.
For others reading this thread:
I do see shared link auto-expiration, described at https://community.box.com/t5/How-To-Guides-for-Sharing/Can-I-Set-A-Shared-Link-To-Expire-After-A-Certain-Date/ta-p/772, in the shared_link.unshared_at field at https://developer.box.com/v2.0/reference#create-or-update-shared-link
I also see collaborator auto-expiration, described at https://community.box.com/t5/How-To-Guides-for-Sharing/Managing-Collaborators/ta-p/19812#collabauto: the folder collaborations (https://developer.box.com/v2.0/reference#view-a-folders-collaborations) show when a given user's collaboration on that folder expires (the "expires_at" field in the returned JSON), and the collaboration object (https://developer.box.com/v2.0/reference#collaboration-object) shows how to set that field.
Hope that helps,
Ian
-
So I spoke to support and have the following response:
"In the web application, Box does have the ability to set a file or folder to expire on a specific date. However, the API does not expose that feature."
This is good to know and I might see about adding in a feature request to the product team to consider it for a future release.
サインインしてコメントを残してください。
コメント
3件のコメント