首页 文章

onedrive for business webhooks

提问于
浏览
0

我似乎无法找到为onedrive订阅webhooks的正确方法 .

我知道 endpoints 网址与常规onedrive不同 . (https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/direct-endpoint-differences

因此,根据文档,订阅webhooks的 endpoints 应如下所示:

HTTPS:// {租户} -my.sharepoint.com/_api/v2.0/subscriptions

但是当我向这个 endpoints 发送POST请求时,我得到了404 .

通过此 endpoints 获取驱动器项目按预期工作 . (HTTPS:// {租户} -my.sharepoint.com/_api/v2.0//drive/special/approot) . 我似乎无法访问“订阅” endpoints .

我究竟做错了什么 ?

1 回答

  • 0

    订阅适用于项目,因此您需要:

    https://{tenant}-my.sharepoint.com/_api/v2.0/drive/root/subscriptions
    

    在这方面,文件看起来有点含糊不清 .

相关问题