2017-10-11 1 views
0

그래프 델타 API를 사용하여 드라이브의 특정 폴더에서 변경 사항을 추적하고 싶습니다.특정 폴더의 문서에 대한 Microsoft Graph delta api?

문서는 루트 드라이브에서 델타 API를 사용하는 예를 제공합니다.

"첨부 파일"폴더에서 내 문서를 가져 오는 데 동일한 API를 사용하려고하면 오류가 발생합니다.

내 요청 API : https://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 호출에서 실수는 무엇인가?

답변

0

델타 쿼리 설명서에 따라 - 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/users/userid/drive/root :/첨부 파일 :/delta' – Brad

관련 문제