Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Microsoft graph api Microsoft图形创建团队API不工作_Microsoft Graph Api - Fatal编程技术网

Microsoft graph api Microsoft图形创建团队API不工作

Microsoft graph api Microsoft图形创建团队API不工作,microsoft-graph-api,Microsoft Graph Api,请查看下面的请求 PUT{id}/team 内容类型:应用程序/json 请求正文 { "memberSettings": { "allowCreateUpdateChannels": true }, "messagingSettings": { "allowUserEditMessages": true, "allowUserDeleteMessages": true }, "funSettings": { "allowGiphy": true, "giphyContentRating": "

请查看下面的请求

PUT{id}/team 内容类型:应用程序/json 请求正文

{
"memberSettings": {
"allowCreateUpdateChannels": true
},
"messagingSettings": {
"allowUserEditMessages": true,
"allowUserDeleteMessages": true
},
"funSettings": {
"allowGiphy": true,
"giphyContentRating": "strict"
}
}
Response :
{
"error": {
"code": "BadGateway",
"message": "Failed to execute backend request.",
"innerError": {
"request-id": "d7dd5e79-c675-4310-8a72-d8f4cb92788a",
"date": "2020-05-20T05:55:15"
}
}
}
]

到目前为止,我使用MicrosoftGraph.NETAPI创建了团队,因此可能会有所不同。 但我发现,您已随请求发送了一个
ODataType
,即使它的
null
,在您的情况下,它将是:

{
  "memberSettings": {
    "allowCreateUpdateChannels": true,
    "ODataType": null
  },
  "messagingSettings": {
    "allowUserEditMessages": true,
    "allowUserDeleteMessages": true,
    "ODataType": null
  },
  "funSettings": {
    "allowGiphy": true,
    "giphyContentRating": "strict",
    "ODataType": null
  },
  "ODataType": null
}

到目前为止,我使用MicrosoftGraph.NETAPI创建了团队,因此可能会有所不同。 但我发现,您已随请求发送了一个
ODataType
,即使它的
null
,在您的情况下,它将是:

{
  "memberSettings": {
    "allowCreateUpdateChannels": true,
    "ODataType": null
  },
  "messagingSettings": {
    "allowUserEditMessages": true,
    "allowUserDeleteMessages": true,
    "ODataType": null
  },
  "funSettings": {
    "allowGiphy": true,
    "giphyContentRating": "strict",
    "ODataType": null
  },
  "ODataType": null
}