Microsoft Graph API remoteLock请求不能以批处理格式工作

Microsoft Graph API remoteLock请求不能以批处理格式工作,api,microsoft-graph-api,batch-request,Api,Microsoft Graph Api,Batch Request,我正在为MS Graph API开发一个API客户端 我正试图通过POST向API发送一批请求https://graph.microsoft.com/v1.0/$batch 为了获取受管设备的信息,这项工作正常: { “请求”:[ { “方法”:“获取”, “url”:“/deviceManagement/managedDevices/12341234-123412341234-123412341234-123412341234-444”, “id”:“1” }, { “方法”:“获取”, “u

我正在为MS Graph API开发一个API客户端

我正试图通过
POST向API发送一批请求https://graph.microsoft.com/v1.0/$batch

为了获取受管设备的信息,这项工作正常:

{
“请求”:[
{
“方法”:“获取”,
“url”:“/deviceManagement/managedDevices/12341234-123412341234-123412341234-123412341234-444”,
“id”:“1”
},
{
“方法”:“获取”,
“url”:“/deviceManagement/managedDevices/345-3453-345-666”,
“id”:“2”
}
]
}
根据上述要求,我得到了预期的结果。但是,当我尝试向
/deviceManagement/mangedDevices/{id}/remoteLock
端点发送批处理请求时,会收到错误消息

{
    "error": {
        "code": "BadRequest",
        "message": "Write request id : 1 does not contain Content-Type header or body.",
        "innerError": {
            "date": "2020-09-27T21:59:18",
            "request-id": "32523452345234-324523452345",
            "client-request-id": "adsaf8asf987asd98f7asdf"
        }
    }
}
“remoteLock”操作的文档声明不包含正文。事实上,当我单独发送请求时,没有内容类型的头或正文,这样做很好


这是MS Graph API的错误吗?这引起了巨大的头痛,我希望我在这里遗漏了一些东西。

你还能重新解释这个问题吗?在应用程序之外,您可以尝试使用MS Graph explorer吗?