我正在使用 Fiddler 为我的对话创建一个新线程,并且我正在关注此处的文档,但出现此错误:
message="Posts" property missing in create conversation request body.
真正奇怪的是我使用的是文档中的确切请求模型。
POST https://graph.microsoft.com/v1.0/groups/<id>/conversations/<id>/threads
Content-type: application/json
Content-length: 419
{
"toRecipients": [
{
"emailAddress": {
"name": "name-value",
"address": "address-value"
}
}
],
"topic": "topic-value",
"hasAttachments": true,
"lastDeliveredDateTime": "datetime-value",
"uniqueSenders": [
"uniqueSenders-value"
],
"ccRecipients": [
{
"emailAddress": {
"name": "name-value",
"address": "address-value"
}
}
]
}
我明白 Posts 属性很明显丢失了,但是这个属性应该放在哪里呢?
像这样,
"topic": "topic-value",
"Posts": "This is a post" <<<
"hasAttachments": true,
没有工作并抛出以下错误消息:
"message": "Property Posts in payload has a value that does not match schema."
我非常感谢您对这个问题的意见。
提前谢谢了!
编辑:在示例模型中添加了以下内容,我能够创建一个新线程:
"posts": [{}]