I am trying to add a reference to a PlannerTask using the java SDK v5.29.0.
After creating PlannerTaskDetails object and adding the reference with oDataType="#microsoft.graph.externalReference"
I send the patch request:
graphClient.planner().tasks(taskId).details().buildRequest(new HeaderOption(IF_MATCH, this.detailsEtag)).patch(details)
..and receive the following error:
com.microsoft.graph.http.GraphServiceException: Error code:
Error message: The request is invalid:
A type named 'microsoft.graph.externalReference' could not be resolved by the model. When a model is available, each type name must resolve to a valid type.
I haven't had any problems with oDataType on other models, so I am thinking this might be a bug?
Anyone have an idea?