Microsoft Graph通过搜索和扩展拉出OneDrive文档端点

时间:2020-03-22 19:52:39

标签: microsoft-graph-api onedrive

我正在使用下面的MS Graph端点在OneDrive中搜索文档。

https://graph.microsoft.com/v1.0/me/drive/root/search(q='{Search Content}')

但是,我想扩展搜索结果以获取如下文件路径

https://graph.microsoft.com/v1.0/me/drive/root/search(q='{Search Content}')?$expand=parentReference(select=path)

得到以下错误:

{
    "error": {
        "code": "BadRequest",
        "message": "Parsing Select and Expand failed.",
        "innerError": {
            "request-id": "e0e8a733-eaa1-4a49-a0b9-07c404ee230d",

        }
    }
}

0 个答案:

没有答案