I am using file webhook events. I understand that "Uploading a new version of a file creates a new object with a new ID" (sited from the docs). When I update a file, I get an Upload event but no delete event. How do I know to delete the old file?

  • Hello @Metal Integration​ - Thank you for reaching out to us. Each item on ShareFile has and ID and a streamID, the latter is constant. You can hit the /v3/items endpoint to get details. Based on versions and how many backups you'd like to keep you can delete the older ones. To reduce API calls, it'll be nice to cache previous item IDs and/or streamID.

     

    Please note that a new version is only created if the setting "Enable Versioning" is turned on. Refer: Account Settings > Advances Preferences > File Settings > Versioning.

    Selected as Best
  • Hello @Metal Integration​ - Thank you for reaching out to us. Each item on ShareFile has and ID and a streamID, the latter is constant. You can hit the /v3/items endpoint to get details. Based on versions and how many backups you'd like to keep you can delete the older ones. To reduce API calls, it'll be nice to cache previous item IDs and/or streamID.

     

    Please note that a new version is only created if the setting "Enable Versioning" is turned on. Refer: Account Settings > Advances Preferences > File Settings > Versioning.

    Selected as Best