首页 > 解决方案 > Microsoft Graph 资源管理器结帐返回状态代码 500“未知错误”

问题描述

我想签出一个文件,并在 Microsoft Graph Explorer 中发出以下 POST 请求:https://graph.microsoft.com/v1.0/drives/<drive-id>/items/<item-id>/checkout

我收到以下错误代码:

失败 - 状态代码 500

和以下回应:

"error": {
    "code": "-1, Microsoft.SharePoint.Client.UnknownError",
    "message": "Unknown Error",
} 

我尝试使用以下 POST 请求检查文件,https://graph.microsoft.com/v1.0/drives/<drive-id>/items/<item-id>/checkin然后出现错误:

"error": {
    "code": "invalidRequest",
    "message": "The file is not checked out."
}

我需要做什么才能签出文件?

标签: microsoft-graph-api

解决方案


和端点仅在 Beta 版本中可用/checkin/checkout

POST https://graph.microsoft.com/beta/drives/{driveId}/items/{itemId}/checkout
POST https://graph.microsoft.com/beta/drives/{driveId}/items/{itemId}/checkin

推荐阅读