是否可以订阅MailboxSettings的更改 - 特别是AutomaticRepliesSetting?
尝试在beta API上将此帖子发送到/subscriptions
。
{
"changeType":"updated",
"notificationUrl":"https://example.com/microsoft/notify",
"resource":"users/karel@example.com/mailboxSettings",
"expirationDateTime":"2018-05-11T08:05:26.6920740Z",
"clientState":"QUUvRXJ5beHI9VEvn6hq"
}
回来:
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: Forbidden; Reason: Forbidden]"
该应用已获得Calendars.ReadWrite
,User.Read.All
和MailboxSettings.ReadWrite
我可以成功订阅日历更改,因此实施没有任何问题。
订阅根/users/karel@example.com
端点给出:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Internal Server Error]",
"innerError": { "request-id": "3caffc72-9507-4bb7-9eab-56e8ecaaab83", "date": "2018-05-08T09:22:16" }
}
}
答案 0 :(得分:0)
这不受支持。来自documentation:
使用Microsoft Graph REST API,应用程序可以订阅以下资源的更改:
- 消息
- 活动
- 联系人
- 用户
- 组
- 群组对话
- OneDrive上共享的内容,包括与SharePoint网站关联的驱动器
- 用户的个人OneDrive文件夹