0
votes

I am trying to create a file with sample content in a SharePoint Online Document Library using MS Graph.

MS Graph API: https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root:/filename.txt:/content

Can anyone please explain how to upload and what will be request body for this API ?

1

1 Answers

0
votes

In postman, we could upload the file like this:

choose binary in the Body:

enter image description here