问题描述
我正在使用Microsoft Graph API在SharePoint Online网站中创建文档库.我想知道是否可以在创建文档库的同时创建导航链接.
I am using Microsoft Graph API create a Document Library in a SharePoint Online site. I would like to know if there is a way to create at the same time I create the doc library a navigation link.
直接在SharePoint Online上工作时,有一个复选框显示在导航链接中",它将自动在左侧列中创建一个导航链接.
When working directly on SharePoint online there is a checkbox "Show in navigation link", which will automatically create a navigation link on the left column.
我在文档中找不到任何内容,我想知道是否有一种方法可以归功于API.
I could not find anything in the documentation, I would like to know if there is a way to do that thanks to the API.
POST https://graph.microsoft.com/v1.0/sites/{site-id}/lists
{
"displayName": "TEST1",
"list": {
"contentTypesEnabled": false,
"hidden": false,
"template": "documentLibrary"
}
}
推荐答案
选中该选项,SharePoint实际上是在做事.首先,它创建文档库.然后,它向页面添加链接. v1.0不支持此功能.
When checked, SharePoint is actually doing to things behind the scenes. First, it creates the Document Library. Then it adds a link to the Page. This isn't supported in v1.0.
我希望由于最近引入了 sitePage
资源到Beta API.目前,还没有一种方法可以更新"现有页面,因此今天它可能不支持您的方案,但是可以合理地假设在某些时候对sitePage
进行PATCH处理. .
I expect it will eventually become available given the recent introduction of the sitePage
resource to the Beta API. At the moment there isn't a way to "update" an existing page so it likely wouldn't support your scenario today but it's logical to assume PATCHing a sitePage
is coming at some point. .
这篇关于Microsoft Graph API-使用导航链接创建文档库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!