Microsoft graph api Microsoft图形创建团队API不工作
请查看下面的请求 PUT{id}/team 内容类型:应用程序/json 请求正文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": "
{
"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
}