Have a look at https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http where {site-id}
is your SharePoint site you're uploading to. {item-id}
you can get by enumerating /sites/{site-id}/drive
or /sites/{site-id}/drives
Upload file to SharePoint from FTP server and Database view using GraphAPI
I am new to Graph API and I am trying to upload a file to the SharePoint. I was able to successfully execute the examples given in the document. But, I have two requirements 1. Upload file from a database view 2. Upload file from FTP server. I do not see any example or the request body for such requirement on the documentation available. Can anyone please help me how can I pass the values to the API.
2 answers
Sort by: Most helpful
-
Ryan Hill 29,656 Reputation points Microsoft Employee
2020-05-19T23:37:32.033+00:00 -
Phoebe 1 Reputation point
2020-05-20T06:25:31.417+00:00 I was able to follow the steps given in the documentation and upload a file to SharePoint. However, I do not know how I can upload a file from a particular source - local directory or FTP server or database view. What are the required request headers and body for such requirement. I was not able to find any information related to such scenario.