Microsoft Graph API错误-有效负载中的属性内容具有与架构不匹配的值

问题描述 投票:0回答:1

PUT请求为“ https://graph.microsoft.com/beta/external/connections/”的代码几天前工作正常,现在抛出错误:

“ {“错误”:{“ code”:“ BadRequest”,“ message”:“有效负载中的属性内容具有与架构不匹配的值。”,“ innerError”:{“ request-id”:“ a823ed79-63a2-4512-864e-acdd15e523f7”,“ date”:“ 2020-04-17T03:01:01”}}}“

试图在C#dotnet控制台应用程序,Graph Explorer,Postman中执行请求,并在整个过程中收到相同的错误
下面的Graph Explorer屏幕截图:
Body of my PUT request

Error Message

关于如何解决此错误的任何建议?没有适当的文档,可以对Beta版本进行任何更改吗?
microsoft-graph put payload bad-request
1个回答
0
投票

内容已成为具有类型和值的复杂类型。有关更多详细信息,请参考文档:Microsoft Graph Connectors indexing API

PUT https://graph.microsoft.com/beta/connections/contosohr/items/TSP228082938
Content-type: application/json
{
  "@odata.type": "microsoft.graph.externalItem",
  "acl": [
    {
      "type": "user",
      "value": "49103559-feac-4575-8b94-254814dfca72",
      "accessType": "deny",
      "identitySource": "Azure Active Directory"
    }
  ],
  "properties": {
    "title": "Error in the payment gateway",
    "priority": 1,
    "assignee": "[email protected]"
  },
  "content": {
    "value": "<h1>Error in payment gateway</h1><p>Error details...</p>",
    "type": "html"
  }
}
© www.soinside.com 2019 - 2024. All rights reserved.