我正在使用自定义传入 webhook 将可操作的消息卡发布到 Microsoft 团队的频道。但是,我无法使用“HttpPOST”操作点击目标网址。我提供了准确的目标网址。我可以通过其他来源发布到该网址。每当我单击具有给定操作的按钮时,“无法完成请求的操作。请稍后再试。' 显示此消息。以下是我的消息卡 JSON。目标网址是虚拟的。请帮忙。
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "Larry Bryant created a new task",
"potentialAction": [{
"@type": "ActionCard",
"name": "Add a comment",
"inputs": [{
"@type": "TextInput",
"id": "comment",
"isMultiline": false,
"title": "Add a comment here for this task"
}],
"actions": [{
"@type": "HttpPOST",
"name": "Add comment",
"body":"hello",
"bodyContentType":"application/json",
"target":"https://demo.xyz.com/abc"
}]
}
]
}