I'm trying to integrate Google classroom API into a ASP.net(c#) web application. I want to update student grades via Classroom submission API. While updating its throwing the exception "updateMask may only contain "draftGrade" or "assignedGrade". [400]"
The code i have used is
var studentSubmision = new Google.Apis.Classroom.v1.Data.StudentSubmission()
{
AssignedGrade = double.Parse(param["assignedGrade"]),
DraftGrade = double.Parse(param["draftGrade"])
};
var response= service.Courses.CourseWork.StudentSubmissions.Patch(studentSubmision, param["courseId"],
param["courseWorkId"], param["submissionId"]).Execute();
I have gone through the API doc link Classroom API .How can i specify the updatemask fields.