Microsoft Graph API - 文件邀请端点突然不起作用

时间:2018-05-17 13:08:42

标签: microsoft-graph

问题:在邀请用户/添加项目权限时,获取400消息 - 请求格式错误或不正确。这工作得早,现在停止工作。

文章: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_invite

发布网址:

POST /v1.0/me/drive/items/01B6CXZGZ7RGHIXZBXKNCZB747AVB52EQ2/invite HTTP/1.1 
Host: graph.microsoft.com 
Connection: keep-alive
Content-Length: 213 
Pragma: no-cache
Cache-Control: no-cache 
Accept: application/json, text/plain, / 
Origin: https://developer.microsoft.com

有效负载:

{ 
    "recipients": [{ "email": "ryan@contoso.com" }],
    "message": "Here's the file that we're collaborating on.", 
    "requireSignIn": false, 
    "sendInvitation": true, 
    "roles": [ "read" ]
}

响应:

{ 
    "error": { 
        "code": "invalidRequest", 
        "message": "The request is malformed or incorrect.", 
        "innerError": { 
            "request-id": "c8a02a02-299c-4ace-8e40-dbd6f830d9ba", 
            "date": "2018-05-17T11:38:00"
        }
    }
}
PD:我们还测试了图形api的beta版本,响应与v1.0相同

1 个答案:

答案 0 :(得分:0)

似乎经过几天没有工作,今天下午他们恢复了服务,现在又恢复了工作

相关问题