You need to enable JavaScript to run this app. 调用Groups Graph API删除群组会话时出现ConversationId不受支持的错误
优惠活动
大模型
产品
解决方案
定价
更多

调用Groups Graph API删除群组会话时出现ConversationId不受支持的错误

Groups Graph API 调用 DELETE 方法报错

我在针对 Groups Graph API 发起 HTTP DELETE 调用时,收到了如下错误信息:

{'error': {'code': 'ErrorInvalidOperation', 'message': "ConversationId isn't supported in the context of this operation.", 'innerError': {'date': '2020-10-06T13:29:04', 'request-id': '{REQUEST-ID}', 'client-request-id': '{CLIENT-REQUEST-ID}'}}}

调用前置说明

  • 当前使用委派权限搭配工作账户发起请求,该接口本身不支持应用权限场景,也不支持微软个人账户(MSA)
  • 对完全相同的URI发起GET请求时,可以正常返回成功结果,排除URI拼接、基础权限校验类的基础问题

触发错误的调用代码

for conversation in collection_to_delete:
    test = requests.delete(
        config["endpoint"] + "/" + config["group_id"] + "/conversations/" + conversation,
        headers={'Authorization': 'Bearer ' + result['access_token']},
    ).json()
    print(test)

完整代码可在对应的公开项目仓库查看,目前无法定位具体的操作错误点。

内容的提问来源于stack exchange,提问作者Shawn Reynolds

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.11.23 08:36:03