Search code examples
phparraysapicloudpodio

How to capture the File Version


How to get the File version of the attached Files field. In case if its a pdf then how can we see the version through the API. Below I have attached 2files. 1st one is the attached file in the Podio view. and the 2nd one is API call so there I can't see the file version. Can you please assist me on this. Podio View Browser API View


Solution

  • There is no versioning for a file attachment in Podio.

    However, when you replace a file, or delete a file, and re-attach a newer updated version of the "same" file

    then the file now has a brand new file_id

    so instead of being referenced with it's old file_id e.g. https://files.podio.com/123456777

    it will now have a new file_id e.g. https://files.podio.com/123456888

    if you look at the way the API works you can do some experiments to prove this

    https://developers.podio.com/doc/files/get-files-4497983

    https://developers.podio.com/doc/files/replace-file-22450

    Personally, I am extracting all file attachment file_id from the full json of the entire item_id when any webhook is received by our server for that item_id