【问题标题】:Microsoft graph create team API not workingMicrosoft Graph 创建团队 API 不起作用
【发布时间】:2020-05-22 06:44:15
【问题描述】:

请在下面找到请求

PUT https://graph.microsoft.com/v1.0/groups/{id}/team 内容类型: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-api


    【解决方案1】:

    到目前为止,我使用 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
    }
    

    【讨论】:

      猜你喜欢
      • 2020-05-10
      • 1970-01-01
      • 1970-01-01
      • 2021-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多