我正在尝试根据http://graph.microsoft.io/en-us/docs/api-reference/beta/api/user_post_plans使用 Graph 创建一个规划器计划
但我一直收到以下 BadRequest 响应:
"error": {
"code": "BadRequest",
"message": "Write requests are only supported on contained entities",
"innerError": {
"request-id": "eae08944-6f47-477e-9950-ade31c473dd7",
"date": "2016-03-07T11:59:04"
}
根据我发布到https://graph.microsoft.com/beta/me/plans的文档,正文如下:
"createdBy": "<my uuid>",
"owner": "<a previously generated group uuid>",
"title": "Blah Plan"
没有运气。之前生成的组如下所示:
{
"id": "<uuid>",
"classification": null,
"createdDateTime": "2016-03-07T09:53:26Z",
"description": "Int Test",
"displayName": "Int Test",
"groupTypes": [
"Unified"
],
"mail": "<email_address>",
"mailEnabled": true,
"mailNickname": "IntTest",
"onPremisesLastSyncDateTime": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"proxyAddresses": [
"SMTP:<email_address>"
],
"renewedDateTime": "2016-03-07T09:53:26Z",
"securityEnabled": false,
"visibility": "Public"
}
我尝试了各种请求主体的组合。有和没有 createdBy 值。有和没有所有者价值观。似乎没有任何效果。
有什么想法我哪里出错了吗?该错误在我的集成测试以及图形浏览器中是一致的。
谢谢