Search code examples
microsoft-graph-apionedrive

OneDrive API for reading, deleting and creating comments


What api.onedrive.com endpoints can be used for reading, deleting and creating comments of documents stored in OneDrive?

var docId = "C382F44F3E2D3362!392363";
using (var http = new HttpClient()) {
    var json = await http.GetStringAsync($"https://api.onedrive.com/v1.0/???{docId}???/comments");
    var comments = JObject.Parse(json);
    ...
}

I need to rewrite an app which use Live SDK to manipulate OneDrive comments. Live SDK is deprecated now. I need an API which is currently supported.


Solution

  • OneDrive is a cloud storage system, it doesn't support directly editing the files stored on it