如果我想根据documentation列出包含查询参数$orderBy
的文件夹中的文件,我会收到错误501
的回复。
以下是请求的原始示例:
GET /v1.0/drives/{id}/items/{id}/children?$select=name,id,folder,lastModifiedDateTime,createdDateTime,size,createdBy,lastModifiedBy,webUrl&$orderby=createdDateTime HTTP/1.1
Host: graph.microsoft.com
Authorization: Bearer <token>
回复是:
{
"error": {
"code": "notSupported",
"message": "The request is not supported by the system.",
"innerError": {
"request-id": "c925ae56-8359-4e8f-98b9-92ff0c4dfc8a",
"date": "2018-06-04T10:50:00"
}
}
}
此问题我只能使用特定的OneDrive帐户。如果我对不同的驱动器和文件夹使用相同的API调用,那么它运行良好没有任何问题。
当我调查它时,似乎API根本不支持带有日期变量的参数$orderBy
。
有谁知道为什么我会为特定帐户收到此错误?