请在下面找到请求
投入https://graph.microsoft.com/v1.0/groups/ {id} /团队 内容类型:application / 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"
}
}
}
]
答案 0 :(得分:0)
直到现在,我使用Microsoft Graph .NET API创建了团队,所以那里可能有所不同。
但是我发现,您随请求发送了一个ODataType
,即使它是null
,在您的情况下也是:
{
"memberSettings": {
"allowCreateUpdateChannels": true,
"ODataType": null
},
"messagingSettings": {
"allowUserEditMessages": true,
"allowUserDeleteMessages": true,
"ODataType": null
},
"funSettings": {
"allowGiphy": true,
"giphyContentRating": "strict",
"ODataType": null
},
"ODataType": null
}