我正在尝试使用 Microsoft.Graph.CreateLink 操作为 OneDrive 项目创建共享链接:
POST https://graph.microsoft.com/v1.0/me/drive/items/01B642VZR4QM6MX36HGZELNLHCFGY26JJ6/Microsoft.Graph.createLink HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json
{
"type":"edit"
}
我收到以下错误:
HTTP/1.1 400 Bad Request
{
"error": {
"code": "BadRequest",
"message": "Version not specified.",
"innerError": {
"request-id": "3ca90464-3910-49e1-92f2-3a9daa822944",
"date": "2016-02-17T15:56:16"
}
}
}
方法说明或元数据不包含有关 API 终结点中所需版本的任何信息。
从对应于request-id:3ca90464-3910-49e1-92f2-3a9daa822944的日志中,服务收到的请求是"POST https://graph.microsoft.com/"。请求 URL 中缺少路径段导致此预期错误。你能再次检查请求吗?