Google 课堂 Restful API - 交作业

Google Classroom Restful API - TurnIn Assignments

我正在尝试使用 Google 课堂的休息资源 (https://developers.google.com/classroom/reference/rest/v1/courses.courseWork.studentSubmissions#StudentSubmission) 来让学生发布对 "Simple Question" 作业的答案(即:一项仅需要字符串作为答案)。

我已经使用 Rest 服务列出了学生的课程、课程作业和提交的内容。但是,我发现在使用 Patch 方法 (https://developers.google.com/classroom/reference/rest/v1/courses.courseWork.studentSubmissions/patch) 尝试更新提交数据时无法更新学生的答案。

截至目前,我正在使用以下主体进行补丁调用:

   {
      "courseId": "xxxxxxxx",
      "courseWorkId": "wwwwwwwww",
      "id": "sssssss",
      "userId": "wwwwwwwwwwwwwww",
      "creationTime": "2019-09-30T19:38:59.594Z",
      "updateTime": "2019-09-30T19:38:59.561Z",
      "state": "CREATED",
      "alternateLink": "https://classroom.google.com/c/aaa/sa/aaaa/submissions/student/aaaa",
      "courseWorkType": "SHORT_ANSWER_QUESTION",
      "shortAnswerSubmission": 
      {
         "answer":"Test Answer"
      }
    }

结果是错误 400 - 收到无效的 JSON 负载..

有没有办法做到这一点 - 即:让第三方软件更新学生作业的答案?

提前致谢!

确认Path是一种仅供教师post评价的方法。使用 Google 课堂发送学生数据的唯一方法是使用正常作业通过附件(实际上是他们的 link)。