【发布时间】:2018-06-14 07:27:47
【问题描述】:
我正在尝试使用 Microsoft Graph API 为 SharePoint 端点创建列表项。我的网址如下:
https://graph.microsoft.com/v1.0/sites/{id}.sharepoint.com:/sites/{name of the site}:/lists/{list_id}/items
使用 POST 调用此 URL,以及这样的正文:
{
"fields": {
"FileLeafRef": "757391.pdf",
"ContentType": "Document",
"Application_x0020_Name": "ABC",
}
}
它给出了错误
"message": "文件和文件夹只能添加到 通过 OneDrive API 的 DocumentLibrary"
有人可以帮忙解决这个问题吗?
我正在尝试为文档创建元数据,并在列表中。
【问题讨论】:
标签: sharepoint microsoft-graph-api