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 ?