APIs & Integrations

Craig
Top Contributor

Urgent: Modify TTL on Files Uploaded via API

We are urgently looking for a way to change the TTL on files that have been uploaded via the files API, as they are currently being at the 3-month mark, with several hundred at risk.

 

Any solution would be appreciated.

 

Thank you in advance

0 Upvotes
1 Reply 1
Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Urgent: Modify TTL on Files Uploaded via API

The docs describe a 'update file properties' endpoint, even tho the TTL is not part of the available params, you could try to update the TTL that way. Probably will get an error if it is not allowed.
If this is not possible, you probably need to reupload the file with the 'overwrite' param set to true or use the 'replace file' endpoint.

Try this with one file to be sure that any of the above suggestions work as expected.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes