How to set expiry time for uploading files through Box Api

SOLVED
Go to solution
New Contributor

How to set expiry time for uploading files through Box Api

I wanted to set the expiry time to file which is going to uploaded to Box. So it have to be removed from Box after the expiry time got exceeded. Is there any way to do through Box API to set the expiry time to the file???

I have checked upload file api and did not find anything to set the time bound.

 

Thanks for advance!!

4 REPLIES 4
Highlighted
Community Manager

Re: How to set expiry time for uploading files through Box Api

Hi @dev4,

 

Thanks for your post. Is this for a collaborator who has access to your folder that you wish to expire?

Would something like this work?

https://developer.box.com/reference#collaboration-object

Highlighted
New Contributor

Re: How to set expiry time for uploading files through Box Api

Thanks Howard.

My requirement is, If I upload a file to box that file has to removed from box after certain time automatically. The time frame I wanted to set while uploading file to box so it will remove from box after the time bound crossed. I have checked upload file api for these parameters to set but I did not find.

Is there any way to leverage the api or any existed api is there to achieve this requirement??

 

Thanks,

Govardhan

Highlighted
Trusted Contributor

Re: How to set expiry time for uploading files through Box Api

Good morning @dev4 and @Howard,

as per what I have seen I think this is one of the cases that the "first-api" approach has not been followed.

 

As you say @dev4, on the api reference does not appear how to update that but on the Enterprise events appear a reference to "STORAGE_EXPIRATION" that controls when a file is set for auto-deletion.

 

So, it is something that only seems to be available at the moment on the UI.

 

Regards

Highlighted
Occasional Contributor

Re: How to set expiry time for uploading files through Box Api

2 years old? Any progress?