Microsoft graph api 如何使用Microsoft Graph API更新规划器任务分配

Microsoft graph api 如何使用Microsoft Graph API更新规划器任务分配,microsoft-graph-api,microsoft-planner,microsoft-graph-plannertasks,Microsoft Graph Api,Microsoft Planner,Microsoft Graph Plannertasks,当我尝试将分配修补到一个任务时,它只会添加到现有的任务上。例如,任务的赋值为{a,B} 当我做补丁分配时,{A,C},分配变成了{A,B,C},而我希望它被更新为{A,C}。当我修补分配时,{}它没有改变任何东西,而我想删除所有分配。我自己没有尝试过,但我确信,如果你用A的用户Id将null值修补到task endpit patch/planner/tasks/{Id},应该会起到神奇的作用 { “A的用户Guid Id”:空, } 别忘了etag我自己也没有试过,但我确信,如果你用A的用户Id

当我尝试将分配修补到一个任务时,它只会添加到现有的任务上。例如,任务的赋值为
{a,B}


当我做补丁分配时,
{A,C}
,分配变成了
{A,B,C}
,而我希望它被更新为
{A,C}
。当我修补分配时,
{}
它没有改变任何东西,而我想删除所有分配。

我自己没有尝试过,但我确信,如果你用A的用户Id将null值修补到task endpit patch/planner/tasks/{Id},应该会起到神奇的作用

{ “A的用户Guid Id”:空, }


别忘了etag

我自己也没有试过,但我确信,如果你用A的用户Id将null值修补到task endpit patch/planner/tasks/{Id},应该会很神奇

{ “A的用户Guid Id”:空, }


别忘了etag作业是独立更新的。更新中未指定的任何受让人将不会被更改。因此,将受让人从a,B更改为a,C的请求如下所示:

{
  "assignments": {
    "User id for B": null,
    "User id for C": { 
      "@odata.type": "microsoft.graph.plannerAssignment",
      "orderHint": " !"
      }
    }
}

作业是独立更新的。更新中未指定的任何受让人将不会被更改。因此,将受让人从a,B更改为a,C的请求如下所示:

{
  "assignments": {
    "User id for B": null,
    "User id for C": { 
      "@odata.type": "microsoft.graph.plannerAssignment",
      "orderHint": " !"
      }
    }
}