创建不适用于 Microsoft Graph 的聊天线程端点
Create Chat-thread endpoint not working on Microsoft Graph
我使用以下端点已有一段时间了,但它已停止工作 https://graph.microsoft.com/beta/teams/{team-id}/channels/{channel-id}/chatThreads
。
正文:
{
"rootMessage": {
"body": {
"contentType": 2,
"content": "Hello world"
}
}
响应是:
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'chatThreads'.",
"innerError": {
"request-id": "8cd24e52-f0eb-4203-bc63-0de4f358c863",
"date": "2020-01-24T10:53:02"
}
}
当我试图导航到文档页面 (Here) 时,它给了我一个 404。这个终点发生了什么事吗?确保我的 team-id
和 channel-id
都是正确的。
Link 到 graph explorer 重现 - Graph-Explorer, Preview。
也曾尝试从 beta 更改为 v1.0,但无济于事。
根据 Create chatMessage in a channel
,这似乎已被“/teams/{id}/channels/{id}/messages”取代
它看起来 "contentType" 有效载荷也可能发生了变化 - 在我链接的页面中显示 "html" 而不是像“2”这样的整数。参见 Properties。
我使用以下端点已有一段时间了,但它已停止工作 https://graph.microsoft.com/beta/teams/{team-id}/channels/{channel-id}/chatThreads
。
正文:
{
"rootMessage": {
"body": {
"contentType": 2,
"content": "Hello world"
}
}
响应是:
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'chatThreads'.",
"innerError": {
"request-id": "8cd24e52-f0eb-4203-bc63-0de4f358c863",
"date": "2020-01-24T10:53:02"
}
}
当我试图导航到文档页面 (Here) 时,它给了我一个 404。这个终点发生了什么事吗?确保我的 team-id
和 channel-id
都是正确的。
Link 到 graph explorer 重现 - Graph-Explorer, Preview。
也曾尝试从 beta 更改为 v1.0,但无济于事。
根据 Create chatMessage in a channel
,这似乎已被“/teams/{id}/channels/{id}/messages”取代它看起来 "contentType" 有效载荷也可能发生了变化 - 在我链接的页面中显示 "html" 而不是像“2”这样的整数。参见 Properties。