- Resource: Course
- CourseState
- CourseMaterialSet
- CourseMaterial
- GradebookSettings
- CalculationType
- DisplaySetting
- Methods
Resource: Course
A Course in Classroom.
JSON representation |
---|
{ "id": string, "name": string, "section": string, "descriptionHeading": string, "description": string, "room": string, "ownerId": string, "creationTime": string, "updateTime": string, "enrollmentCode": string, "courseState": enum ( |
Fields | |
---|---|
id |
Identifier for this course assigned by Classroom. When Specifying this field in a course update mask results in an error. |
name |
Name of the course. For example, "10th Grade Biology". The name is required. It must be between 1 and 750 characters and a valid UTF-8 string. |
section |
Section of the course. For example, "Period 2". If set, this field must be a valid UTF-8 string and no longer than 2800 characters. |
description |
Optional heading for the description. For example, "Welcome to 10th Grade Biology." If set, this field must be a valid UTF-8 string and no longer than 3600 characters. |
description |
Optional description. For example, "We'll be learning about the structure of living creatures from a combination of textbooks, guest lectures, and lab work. Expect to be excited!" If set, this field must be a valid UTF-8 string and no longer than 30,000 characters. |
room |
Optional room location. For example, "301". If set, this field must be a valid UTF-8 string and no longer than 650 characters. |
owner |
The identifier of the owner of a course. When specified as a parameter of a
This must be set in a create request. Admins can also specify this field in a |
creation |
Creation time of the course. Specifying this field in a course update mask results in an error. Read-only. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
enrollment |
Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only. |
course |
State of the course. If unspecified, the default state is |
alternate |
Absolute link to this course in the Classroom web UI. Read-only. |
teacher |
The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only. |
course |
The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only. |
teacher |
Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only. |
courseMaterialSets[] |
Sets of materials that appear on the "about" page of this course. Read-only. |
guardians |
Whether or not guardian notifications are enabled for this course. Read-only. |
calendar |
The Calendar ID for a calendar that all course members can see, to which Classroom adds events for course work and announcements in the course. The Calendar for a course is created asynchronously when the course is set to Read-only. |
gradebook |
The gradebook settings that specify how a student's overall grade for the course will be calculated and who it will be displayed to. Read-only |
CourseState
Possible states a course can be in.
Enums | |
---|---|
COURSE_STATE_UNSPECIFIED |
No course state. No returned Course message will use this value. |
ACTIVE |
The course is active. |
ARCHIVED |
The course has been archived. You cannot modify it except to change it to a different state. |
PROVISIONED |
The course has been created, but not yet activated. It is accessible by the primary teacher and domain administrators, who may modify it or change it to the ACTIVE or DECLINED states. A course may only be changed to PROVISIONED if it is in the DECLINED state. |
DECLINED |
The course has been created, but declined. It is accessible by the course owner and domain administrators, though it will not be displayed in the web UI. You cannot modify the course except to change it to the PROVISIONED state. A course may only be changed to DECLINED if it is in the PROVISIONED state. |
SUSPENDED |
The course has been suspended. You cannot modify the course, and only the user identified by the ownerId can view the course. A course may be placed in this state if it potentially violates the Terms of Service. |
CourseMaterialSet
A set of materials that appears on the "About" page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.
JSON representation |
---|
{
"title": string,
"materials": [
{
object ( |
Fields | |
---|---|
title |
Title for this set. |
materials[] |
Materials attached to this set. |
CourseMaterial
A material attached to a course as part of a material set.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field material . Material data. material can be only one of the following: |
|
drive |
Google Drive file attachment. |
you |
Youtube video attachment. |
link |
Link atatchment. |
form |
Google Forms attachment. |
GradebookSettings
The gradebook settings for a course. See the help center article for details.
JSON representation |
---|
{ "calculationType": enum ( |
Fields | |
---|---|
calculation |
Indicates how the overall grade is calculated. |
display |
Indicates who can see the overall grade.. |
grade |
Grade categories that are available for coursework in the course. |
CalculationType
Possible methods of overall grade calculation.
Enums | |
---|---|
CALCULATION_TYPE_UNSPECIFIED |
No method specified. This is never returned. |
TOTAL_POINTS |
Overall grade is the sum of grades divided by the sum of total points regardless of category. |
WEIGHTED_CATEGORIES |
Overall grade is the weighted average by category. |
DisplaySetting
Possible settings for displaying the overall grade.
Enums | |
---|---|
DISPLAY_SETTING_UNSPECIFIED |
No setting specified. This is never returned. |
SHOW_OVERALL_GRADE |
Shows overall grade in the gradebook and student profile to both teachers and students. |
HIDE_OVERALL_GRADE |
Does not show overall grade in the gradebook or student profile. |
SHOW_TEACHERS_ONLY |
Shows the overall grade to teachers in the gradebook and student profile. Hides from students in their student profile. |
Methods |
|
---|---|
(deprecated) |
Returns whether a user is eligible to create add-on attachments in a given course. |
(deprecated) |
Returns whether a user is eligible to update GradingPeriodSettings in a given course. |
|
Creates a course. |
|
Deletes a course. |
|
Returns a course. |
|
Returns the grading period settings in a course. |
|
Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. |
|
Updates one or more fields in a course. |
|
Updates a course. |
|
Updates grading period settings of a course. |