问题
:邀请用户/向项目添加权限时,通过消息获取400-请求格式错误或不正确。这是以前的工作,现在停止工作。
第条:
https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_invite
发布URL:
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:我们还测试了graph api的测试版,响应与v1相同。0