如何在MS Graph中创建带有丰富通知的订阅?
POST https://graph.microsoft.com/v1.0/subscriptions
{
"resource": "users/{email}/messages?$select=hasAttachments",
"changeType": "created",
"clientState": "415e99b4-73af-454e-93b5-00eb6c3082b9",
"notificationUrl": "https://229c8207.ngrok.io/Notification/Listen",
"includeProperties": true,
"expirationDateTime": "2019-01-16T22:21:56.3942423+00:00"
}
预期:创建了202个
实际:400个错误的请求
{
"error": {
"code": "InvalidRequest",
"message": "Microsoft.Exchange workload is not enabled for rich notifications.",
"innerError": {
"request-id": "7e03b3c9-aa49-4222-b7a7-5fddebc82327",
"date": "2019-01-16T16:47:24"
}
}
}
答案 0 :(得分:1)
“丰富的通知”尚未通过Microsoft Graph启用。我们正在努力,并将添加一些令人兴奋的新功能。我们目前无法提供ETA,但这是我们在此功能区域列表中的首选。