首页 > 解决方案 > GraphAPI callRecords 返回不支持的段类型

问题描述

我有一个对 /communications/callRecords 的有效 GraphAPI 订阅,它成功地返回了呼叫的 callid。尝试使用以下请求获取通话详细信息时:

https://graph.microsoft.com/beta/communications/callRecords/45578cfe-8329-48b7-ba6b-54a627b00bf4?$expand=sessions($expand=segments)

我收到以下错误:

{
    "error": {
        "code": "BadRequest",
        "message": "Unsupported segment type. ODataQuery: /communications/callRecords/45578cfe-8329-48b7-ba6b-54a627b00bf4",
        "innerError": {
            "date": "2020-11-24T12:34:11",
            "request-id": "277b4fa1-11a5-4922-94d7-83fec3a57572",
            "client-request-id": "277b4fa1-11a5-4922-94d7-83fec3a57572"
        }
    }
}

如果我将 GraphAPI 调用更改为 /v1.0/,我会得到同样的错误。我确信这以前有效,但似乎无法弄清楚可能发生了什么变化。

标签: microsoft-graph-apimicrosoft-teamsmicrosoft-graph-teams

解决方案


推荐阅读