Thank you so much! I checked the REST API and it seems like this would be the way to go.
However I have 2 concerns that maybe you could help me with:
1- In the documentation I cannot see how to add the file itself in the package. Do you have an example of how this is done? Do you need to provide a url for the file to be uploaded or is it encoded somehow?
2- There is a bug reported in Github related to WordPress 6.3.2 and above. Has this been fixed? https://github.com/imsas/wpdm-rest-api-docs/issues
Thanks in advance for your help!