Skip to content
Advertisement

Tag: microsoft-teams

Upload files to Microsoft Teams using API

I have an access token for Microsoft Graph. I have to upload file to the channels file tab. Can anyone help which endpoints I need to use for upload file to file tab I am calling below API: PUT: https://graph.microsoft.com/v1.0/groups/xxxxxxxx-xxxx-xxxx-xxxx-c8550c107aad/drive/items//sites/leafletcorp.com/Shared%20Documents/Development:/abc.docx:/content?@name.conflictBehavior=rename I am getting below response: { “error”: { “code”: “BadRequest”, “message”: “Entity only allows writes with a JSON Content-Type header.”,

Advertisement