我'm currently trying to create a Microsoft teams thread (within a channel) via the Microsoft Graph API. I'喜欢线程有主题/ Headers 我发送以下请求(来自图表浏览器)POST https://graph.microsoft.com/beta/teams/{teamId}/channels/{channelId}/chatThreads
具有以下有效负载
{
"rootMessage": {
"body": {
"contentType": 1,
"content": "<h1>Hello world</h1>"
},
"subject": "Welcome Aboard!"
}
}
但是,创建的线程没有任何 Headers ,您可以在下面的屏幕截图中看到 .
所以问题是: how can I create a chat thread with a subject from the Microsoft Graph API?
编辑:这是我从消息“团队中的 Headers ”(从UI创建)获得的有效负载,注释包含主题属性 .
{
"replyToId": null,
"etag": "1537198542791",
"messageType": "message",
"createdDateTime": "2018-09-17T15:35:42.791Z",
"lastModifiedDateTime": null,
"deleted": false,
"subject": "title from teams",
"summary": null,
"importance": "normal",
"locale": "en-us",
"id": "1537198542791",
"from": {
"application": null,
"device": null,
"user": {
"id": "c2e8df37-c6a7-4d88-89b1-feb4f1fda7c5",
"displayName": "Vincent Biret",
"identityProvider": "Aad"
}
},
"body": {
"contentType": "text",
"content": "wvwvwevw"
},
"attachments": [],
"mentions": [],
"reactions": []
}
1 回答
Microsoft Teams中的帖子没有"subject" . 这些是聊天线程,而不是电子邮件线程 . 唯一的内容是
body
: