Hi,
I'm trying to update and education outcome of type EducationPointsOutcome and the requests always return error 400 Bad request: "The content of the request is invalid. Common causes are an invalid Content-Type header or no content in the body."
I'm using PHP SDK library and the code is the following:
$outcome = new Microsoft\Graph\Model\EducationPointsOutcome();
$points = new Microsoft\Graph\Model\EducationAssignmentPointsGrade();
$points->setPoints(floatval($grade));
$outcome->setPoints($points);
$graph
->createRequest('PATCH', "/education/classes/{$classId}/assignments/{$assignmentId}/submissions/{$submissionId}/outcomes/{$outcomeId}")
->addHeaders(["Content-Type" => "application/json"])
->attachBody($outcome)
->execute();
Is there anyone that can help me with that? I don't know what's the problem because I followed the documentation in Update outcome page