Google Classroom add-ons are now generally available to developers! Please see the
add-ons documentation for more information.
Send feedback
Method: courses.updateGradingPeriodSettings
Stay organized with collections
Save and categorize content based on your preferences.
Updates grading period settings of a course.
The requesting user and course owner must be eligible to modify Grading Periods. For details, see licensing requirements .
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to modify the grading period settings in a course or for access errors :
UserIneligibleToUpdateGradingPeriodSettings
INVALID_ARGUMENT
if the request is malformed.
NOT_FOUND
if the requested course does not exist.
HTTP request
PATCH https://classroom.googleapis.com/v1/courses/{courseId}/gradingPeriodSettings
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters
courseId
string
Required. The identifier of the course.
Query parameters
Parameters
updateMask
string (FieldMask
format)
Mask that identifies which fields in the GradingPeriodSettings to update.
The GradingPeriodSettings gradingPeriods
list will be fully replaced by the grading periods specified in the update request. For example:
Grading periods included in the list without an ID are considered additions, and a new ID will be assigned when the request is made.
Grading periods that currently exist, but are missing from the request will be considered deletions.
Grading periods with an existing ID and modified data are considered edits. Unmodified data will be left as is.
Grading periods included with an unknown ID will result in an error.
The following fields may be specified:
gradingPeriods
applyToExistingCoursework
This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo"
.
previewVersion
enum (PreviewVersion
)
Optional. The preview version of the API. This must be set in order to access new API capabilities made available to developers in the Preview Program.
Request body
The request body contains an instance of GradingPeriodSettings
.
Response body
If successful, the response body contains an instance of GradingPeriodSettings
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/classroom.courses
For more information, see the Authorization guide .
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."]]