New Media in 1.8

My API introduction topic can be helpful - 1.8 API Introduction

in the end you will use this call to upload new file and replace the old one https://xibo.org.uk/manual/api/#/library/libraryAdd

You could use our oauth2 and then use our wrapper to do that - XiboLibrary

Example usage of that wrapper is here.

Or without wrapper