不支持 SharePoint Online 合并 [英] SharePoint Online Merge Unsupported
问题描述
我尝试将项目合并到 SharePoint Online 中的现有列表,但收到以下错误:
类型 SP.ListItemEntityCollection 不支持 HTTP PATCH 方法."
我的配置如 Microsoft 文档中所述.https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
列表中此类项目的权限是否有问题?我该如何修改?我没有看到对不同类型的引用或解决此问题.
当指定了无效的资源端点时,通常会发生此错误.
创建SP.ListItem
资源的端点
网址:/_api/web/lists/getbytitle()/items方法:POST数据:<项目有效载荷>
<块引用>
确保为 SP.ListItemEntityCollection
资源指定端点那个操作.
更新SP.ListItem
资源的端点
网址:/_api/web/lists/getbytitle()/items()方法:POST标题:"X-HTTP-Method": "MERGE",如果匹配":*"数据:<项目有效载荷>
<块引用>
确保为 SP.ListItem
指定资源 url那个操作.例如,下面的 url /_api/web/lists/getbytitle(
在这种情况和指定的错误将在更新列表项时发生.
I am trying to merge an item into an existing list in SharePoint Online, but receive the following error:
"The type SP.ListItemEntityCollection does not support HTTP PATCH method."
My configuration is as stated in Microsoft documentation. https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
Is there a problem with the permissions for this type of item in the list? How can I modify that? I have seen no references to different types, or resolving this issue.
This error usually occurs when invalid resource endpoint is specified.
Endpoint to create SP.ListItem
resource
Url : /_api/web/lists/getbytitle(<listTitle>)/items
Method: POST
Data: <item payload>
Make sure endpoint for
SP.ListItemEntityCollection
resource is specified for that operation.
Endpoint to update SP.ListItem
resource
Url : /_api/web/lists/getbytitle(<listTitle>)/items(<itemid>)
Method: POST
Headers:
"X-HTTP-Method": "MERGE",
"If-Match": "*"
Data: <item payload>
Make sure
SP.ListItem
resource url is specified for that operation. For example, the following url/_api/web/lists/getbytitle(<listTitle>)/items?$filter=Id eq 1
is invalid in that case and the specified error will occur while updating list item.
这篇关于不支持 SharePoint Online 合并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!