【发布时间】:2018-02-23 04:37:04
【问题描述】:
我正在尝试使用 Microsoft Graph 在 SharePoint Teams 网站中创建新文档库。
var docLibrary = $@"{{ ""name"": ""{listName}"", ""list"": {{ ""template"": ""documentLibrary"" }} }}";
var res = await GraphClient.QueryGraphAsyncPost($"/groups/{groupId}/sites/root/lists/", docLibrary, user);
var result = await res.Content.ReadAsStringAsync();
这是我正在使用的代码,但它返回了错误的请求。我似乎无法在文档中找到创建文档库的正确方法。
【问题讨论】:
标签: sharepoint microsoft-graph-api onedrive