Returns whether a user is eligible to update GradingPeriodSettings in a given course.
This method is deprecated. Use
instead.UserProfiles.checkUserCapability
This method returns the following error codes:
PERMISSION_DENIED
for access errors.INVALID_ARGUMENT
if the request is malformed.NOT_FOUND
if the requested course does not exist.
HTTP request
GET https://classroom.googleapis.com/v1/courses/{courseId}:checkGradingPeriodsSetupEligibility
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
course |
Required. The identifier of the course. |
Query parameters
Parameters | |
---|---|
preview |
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 must be empty.
Response body
Whether the user is allowed to update GradingPeriodSettings in this course.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"courseId": string,
"isGradingPeriodsSetupEligible": boolean,
"previewVersion": enum ( |
Fields | |
---|---|
course |
Immutable. The identifier of the course. |
is |
Whether the user is allowed to update the GradingPeriodSettings in this course. |
preview |
Output only. 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. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/classroom.courses
https://www.googleapis.com/auth/classroom.courses.readonly
For more information, see the Authorization guide.