我试图创建一个使用图形按http://graph.microsoft.io/en-us/docs/api-reference/beta/api/user_post_plans创建计划(BETA)似乎不工作
一个策划方案,但我一直收到以下错误请求响应:
"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值。有和没有所有者值。似乎没有任何工作。
任何想法我错了吗?该错误在我的集成测试以及图形浏览器中都是一致的。
谢谢
不幸的是,这似乎并没有工作。我作为我的用户进行身份验证。我创建了使用api的组作为所有者成员(已在组中的ui中确认),然后尝试使用组ID作为所有者值和我的用户ID作为createdBy值来创建计划。仍然没有骰子。 在相关说明。将任务(使用api)添加到先前创建的存储桶中也会产生相同的错误。使用https://tasks.office.com上使用规划器UI创建的计划和存储区的planId和bucketId – Garibaldi
您可以共享POST/beta/plans请求的请求ID和时间戳吗? –
当然。 “innerError”:{ “请求ID”: “eae08944-6f47-477e-9950-ade31c473dd7”, “日期”: “2016-03-07T11:59:04” } – Garibaldi