Simple file upload API
I'd like a simple API endpoint that I can just PUT a file to and have it added (or updated) to the team.
The use case is that I have a diagram that is updated once an hour that contains some information relevant to a project.
Currently that file is emailed to the relevant people.
I want to upload that file automatically into teams without having to use the full blown sharepointAPI so that it's available for all team members.
Using the sharepoint API is undesirable because it needs my own credentials to create the bearer token needed for the upload. This makes it difficult to maintain.
ideally what I'd be looking for is something simple enough that a one line command like this would work:
curl -X PUT -T 'C:\image.png' https://teams.microsoft.com/_/MyAwesomeTenant/MyAwsomeTeam/MyAwesomeChannel/Files/image.png?uploadToken= 00000000-0000-0000-0000-000000000000