Google 课堂插件现已面向开发者正式推出!如需了解详情,请参阅
插件文档。
版本说明
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面包含 Classroom API 的版本说明。订阅公告列表即可接收电子邮件更新。
2023 年 11 月 13 日:开发者预览版:评分标准 CRUD
评分标准 CRUD 作为 Google Workspace 开发者预览版计划的一部分提供,该计划可让您抢先体验某些功能。借助此功能,开发者可以代表教师管理 Google 课堂评分标准。如需详细了解如何参与预览版功能,请参阅路线图。
2023 年 6 月 26 日:针对受邀用户的非重大错误代码变更
以下端点现在会针对来自“受邀用户”(已受邀加入课程但尚未接受邀请的教师或学生)的请求返回 404 错误。之前,这些端点会返回 403 错误:
courses.courseWork.create
courses.courseWork.delete
courses.courseWork.get
courses.courseWork.patch
courses.courseWorkMaterials.create
courses.courseWorkMaterials.delete
courses.courseWorkMaterials.get
courses.courseWorkMaterials.patch
courses.announcements.create
courses.announcements.delete
courses.announcements.get
courses.announcements.patch
以下相关端点不受影响:
courses.courseWork.list
courses.courseWork.modifyAssignees
courses.courseWorkMaterials.list
courses.announcements.list
courses.announcements.modifyAssignees
2022 年 8 月 8 日:成绩类别和成绩册设置
现在,您可以使用 API 检索课程作业的成绩类别和课程的成绩册设置。
2020 年 9 月 21 日:Google 课堂资料
开发者现在可以在 Google 课堂中读取、写入和修改课程作业资料项:
- 在向 Google 课堂分享内容时,为课程 ID 和资料类型设置分享标记属性。
2019 年 4 月 2 日:Google 课堂中的主题
- 检索、创建、修改和删除 Google 课堂中的主题 - 现在,您可以通过 API 在 Google 课堂中整理和检索课业项目。
2018 年 8 月 7 日:针对课程作业和学生提交的作业的推送通知
- 实时通知课程作业和学生提交的作业发生的变化 - 现在,您可以聆听有关新作业发布、学生提交作业、教师为作业评分等方面的通知
2017 年 9 月 26 日:推送通知、公告和个性化帖子
2017 年 8 月 1 日:转移课程所有权和提交历史记录
- 使用管理员凭据更新课程的主要所有者 (ownerId),或发起邀请,让教师成为课程所有者
- 查看学生提交内容的提交记录
2017 年 6 月 19 日:课程安排、日历和已验证的教师
Classroom API 的更新
2017 年 1 月 11 日:课程作业更新
对 coursework 端点的更新使应用能够:
- 创建和更新问题
- 修改和删除作业
- 向课程作业和学生提交的作业添加云端硬盘内容和 YouTube 视频
2016 年 8 月 17 日:Classroom API 中的监护人
Google 课堂会为监护人生成学生活动的电子邮件摘要。Classroom API 支持监护人。开发者可以
2016 年 5 月 18 日:作业已添加到 Classroom API
Classroom API 现在包含课程作业,即作业、题目、学生回答和成绩。请参阅课程作业指南以开始使用。
2015 年 8 月 8 日:Classroom API 现已正式发布
Google 课堂 API 现已面向所有开发者和 G Suite 教育版网域开放。您不再需要申请访问权限即可开始使用该 API。
2015 年 6 月 29 日:Classroom API 现已推出开发者预览版
Classroom API 现已推出开发者预览版。您现在可以注册抢先体验和测试账号。
G Suite 教育版管理员如果想让其网域中的用户提前访问该 API,可以注册网域白名单。
开发者可以申请抢先体验使用该 API 的代码。
如需查看完整公告,请参阅 Google for Education 博客。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-01。
[null,null,["最后更新时间 (UTC):2025-08-01。"],[],[],null,["# Release Notes\n\nThis page contains release notes for the Classroom API. Subscribe to\nthe [announcement list](https://groups.google.com/forum/#!forum/classroom-dev-announce) to get email updates.\n\n#### 13 November 2023: **Developer Preview: Rubrics CRUD**\n\n[Rubrics CRUD](/workspace/classroom/rubrics) is available as part of the [Google Workspace Developer Preview\nProgram](/workspace/preview), which grants early access to certain features. This feature allows\ndevelopers to manage Classroom [rubrics](https://support.google.com/edu/classroom/answer/9335069?co=GENIE.Platform%3DDesktop) on behalf of teachers. See the\n[roadmap](/workspace/classroom/reference/roadmap) to learn more about participating in preview features.\n\n#### 26 June 2023: **Non-breaking error code change for Invited Users**\n\nThe following endpoints now return a 404 error for requests from Invited Users\n(a teacher or student that has been [invited](/workspace/classroom/guides/manage-invitations) to a course but has not yet\naccepted). Previously these endpoints returned a 403:\n\n- `courses.courseWork.create`\n- `courses.courseWork.delete`\n- `courses.courseWork.get`\n- `courses.courseWork.patch`\n- `courses.courseWorkMaterials.create`\n- `courses.courseWorkMaterials.delete`\n- `courses.courseWorkMaterials.get`\n- `courses.courseWorkMaterials.patch`\n- `courses.announcements.create`\n- `courses.announcements.delete`\n- `courses.announcements.get`\n- `courses.announcements.patch`\n\nThe following related endpoints are unaffected:\n\n- `courses.courseWork.list`\n- `courses.courseWork.modifyAssignees`\n- `courses.courseWorkMaterials.list`\n- `courses.announcements.list`\n- `courses.announcements.modifyAssignees`\n\n#### 8 August 2022: **Grade category and gradebook settings**\n\nIt is now possible to retrieve the [grade category](/workspace/classroom/reference/rest/v1/GradeCategory) for coursework and\n[gradebook settings](/workspace/classroom/reference/rest/v1/courses#gradebooksettings) for courses using the API.\n\n#### 21 September 2020: **Classroom Materials**\n\nDevelopers can now read, write, and modify CourseWork Material items in Classroom:\n\n- [Create CourseWorkMaterials](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWorkMaterials/create)\n- Retrieve [one](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWorkMaterials/get) or [all CourseWorkMaterials](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWorkMaterials/list)\n- [Update CourseWorkMaterials](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWorkMaterials/patch)\n- [Modify attachments for CourseWorkMaterials](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWorkMaterials/modifyAttachments)\n- [Delete CourseWorkMaterials](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWorkMaterials/delete)\n\n#### 18 November 2019: **New Share Button URL Parameters**\n\n- Set [share tag attributes](https://developers.google.com/workspace/classroom/guides/sharebutton#share_tag_attributes) for course ID and material type when sharing content to Classroom.\n\n#### 2 April 2019: **Topics in Classrooom**\n\n- [Retrieve](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.topics/list), [create](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.topics/create), [edit](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.topics/patch), and [delete](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.topics/delete) Topics in Classroom - now you can organize and retrieve Classwork items in Classroom through the API.\n\n#### 7 August 2018: **Push notifications for course work and student submissions**\n\n- Get [real-time notifications](https://developers.google.com/workspace/classroom/guides/push-notifications) of changes to course work and student submissions - now you can listen for new assignments being posted, students turning in their submissions, teachers grading submissions, and more\n\n#### 26 September 2017: **Push notifications, announcements, and individualized posts**\n\n- Get [real-time notifications](https://developers.google.com/workspace/classroom/guides/push-notifications) of roster changes - instead of polling Classroom API endpoints for changes, you can use [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/) to get roster updates for a class or a domain\n- Create and update [announcements](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.announcements) - in addition to coursework, applications can now create and update announcements in the class stream\n- Create and update [individualized posts](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWork) - applications now have the option to post announcements or coursework to individual students, instead of the whole class\n\n#### 1 August 2017: **Transfer course ownership and submission history**\n\n- [Update](https://developers.google.com/workspace/classroom/reference/rest/v1/courses) the primary owner of a course (ownerId) with admin credentials, or initiate an [invitation](https://developers.google.com/workspace/classroom/reference/rest/v1/invitations#courserole) for a teacher to become the course owner\n- Access [submission history](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWork.studentSubmissions) for a student submission\n\n#### 19 June 2017: **Schedule coursework, calendar, and verified teachers**\n\nUpdates to the Classroom API\n\n- [Schedule coursework](https://developers.google.com/workspace/classroom/reference/rest/v1/courses.courseWork) to post at a later date/time by setting the scheduledTime field of coursework\n- Access the [calendarId](https://developers.google.com/workspace/classroom/reference/rest/v1/courses) of a course\n- Identify if a given user is a [verified teacher](https://developers.google.com/workspace/classroom/reference/rest/v1/userProfiles)\n\n#### 11 January 2017: **Coursework updates**\n\nUpdates to the [coursework](https://developers.google.com/workspace/classroom/guides/manage-coursework) endpoints lets applications:\n\n- Create and update questions\n- Modify and delete coursework\n- Add Drive items and YouTube videos to coursework and student submissions\n\n#### 17 August 2016: **Guardians in the Classroom API**\n\nGoogle Classroom generates email summaries of student activities for guardians. The Classroom API has support for [guardians](https://developers.google.com/workspace/classroom/guides/manage-guardians). Developers can\n\n- Invite individuals to become guardians\n- Retrieve a student's invited and active guardians\n- Manage active guardians\n\n- G Suite for Education admins should confirm their\n [Classroom Data access settings](https://admin.google.com/ac/managedsettings/397451267717/DataAccessSettings)\n are correct.\n\n- The Classroom API is now available in Google Apps Script. Try out the [QuickStart](/workspace/classroom/quickstart/apps-script).\n\n#### 18 May 2016: **Coursework added to the Classroom API**\n\nThe Classroom API now includes coursework - the assignments, questions,\nstudent responses, and grades. See the [Coursework guide](/workspace/classroom/guides/manage-coursework)\nto get started.\n\n#### 08 August 2015: **Classroom API now generally available**\n\nThe Classroom API is now available to all developers and G Suite for\nEducation domains. You no longer need to request access to begin using the API.\n\n- G Suite for Education admins should confirm their [Classroom Data access settings](https://admin.google.com/ac/managedsettings/397451267717/DataAccessSettings) are correct.\n- The Classroom API is now available in Google Apps Script. Try out the [QuickStart](/workspace/classroom/quickstart/apps-script).\n\n#### 29 June 2015: **Classroom API now available developer preview**\n\nThe Classroom API is now available for developer preview. You can sign up now\nfor early [access and test accounts](/workspace/classroom/access).\n\n- ~~G Suite for Education admins who want to give users in their domain early\n access to the API can\n [sign up for the domains whitelist](//support.google.com/code/contact/classroom_api_admin_preview).~~\n- ~~Developers can\n [apply for early access](https://docs.google.com/a/google.com/forms/d/1hY4Lk3imYBSOanQHZSqw1AYt9AswVGiltV-Jp7_5QpI/viewform)\n to code with the API.~~\n\nFor the full announcement, see the\n[Google for Education blog](//googleforeducation.blogspot.com/2015/06/new-ways-to-integrate-with-Google-Classroom.html)."]]