请在下面找到请求
PUThttps://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"
}
}
}
]
直到现在我都使用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
}