【问题标题】:updating task using microsoft graph api giving response of 400 invalid request使用 microsoft graph api 更新任务,给出 400 无效请求的响应
【发布时间】:2017-03-12 09:15:27
【问题描述】:

从 angular2 typescript 应用程序我正在尝试使用 Graph API 更新任务。以下是我的要求 -

Request URL:https://graph.microsoft.com/beta/tasks/_1EKXXuN1UGInJ9yVHAjIpYAKuC2
Request Method:PATCH

Request Body:
{
    "createdBy":"f16ca963-29ee-4cdc-834e-8911ff9f628e",
    "startDateTime":"2016-10-31T00:00:00.000Z",
    "assignedTo":"55a899d8-66fd-45e5-900e-85ea01650a03",
    "planId":"W0crdsiJukKWvCOCYrfccJYAEAEg",
    "bucketId":"6szBME9_PkOJO7P4SHZ_hZYAB85V",
    "title":"Where does it come from?"
}

以下是我收到的回复 -

{
  "error": {
    "code": "",
    "message": "The request is invalid.",
    "innerError": {
       "request-id": "c78f8b45-3fd4-4071-9378-6e3f34d8ec11",
       "date": "2016-10-29T19:06:03"
     }
  }
}

我该如何解决这个问题?

【问题讨论】:

    标签: javascript asp.net .net ajax microsoft-graph-api


    【解决方案1】:

    createdBy 是只读的,这可能会导致错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-11
      • 1970-01-01
      • 2020-12-24
      • 2014-03-31
      • 2017-09-06
      • 1970-01-01
      相关资源
      最近更新 更多