针对特定文件夹的文档的Microsoft图形增量api?

问题描述:

我想使用图形增量API来跟踪驱动器特定文件夹中的更改。针对特定文件夹的文档的Microsoft图形增量api?

文档提供了在根驱动器上使用增量API的示例。

当我试图使用相同的API从“附件”文件夹中获取我的文档时,它提供了一个错误。

我的要求APIhttps://graph.microsoft.com/v1.0/users/userid/drive/root/delta:/Attachments:/children

错误响应

{ 
    "error": { 
     "code": "BadRequest", 
     "message": "The request URI is not valid. The segment 'delta' must be the last segment in the URI because it is one of the following: $ref, $batch, $count, $value, $metadata, a named media resource, an action, a noncomposable function, an action import, a noncomposable function import, an operation with void return type, or an operation import with void return type.", 
     "innerError": { 
      "request-id": "d98d91f1-f131-4d76-89bd-4c980b13f92d", 
      "date": "2017-10-11T12:55:09" 
     } 
    } 
} 

什么是这个API调用的错误?

根据增量查询文档 - 在OneDrive for Business和SharePoint中,增量只支持根文件夹,而不支持驱动器中的其他文件夹。

参考 - https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/driveitem_delta

+0

这是正确的,但我也就叫出来,如果它没有工作,你想打,看起来像'https://graph.microsoft.com/v1的URL。 0 /用户/用户ID /驱动器/根:/附件:/ delta' – Brad