3rd party support to add files via direct url

Hi
I was wondering if there is a way by which we can update libraries/add media via an API. My use case is I have some files hosted which change url every few days so what I was planning was to update the files/media myself via some script so that my library is always in sync with the latest network location to stream from. Please let me know if there is a way to do this, maybe I missed it :sweat_smile: