v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1310484273.7 KB
courses

Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are limited once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see licensing requirements. This request must be made by the Google Cloud console of the OAuth client ID used to create the parent course work item. This method returns the following error codes: * PERMISSION_DENIED if the requesting developer project didn't create the corresponding course work, if the user isn't permitted to make the requested modification to the rubric, or for access errors. This error code is also returned if grading has already started on the rubric. * INVALID_ARGUMENT if the request is malformed and for the following request error: * RubricCriteriaInvalidFormat * NOT_FOUND if the requested course, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work. * INTERNAL if grading has already started on the rubric.

patch/v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics/{id}

Path parameters

courseIdstring required

Required. Identifier of the course.

courseWorkIdstring required

Required. Identifier of the course work.

idstring required

Optional. Identifier of the rubric.

Query parameters

updateMaskstring

Optional. Mask that identifies which fields on the rubric to update. This field is required to do an update. The update fails if invalid fields are specified. There are multiple options to define the criteria of a rubric: the source_spreadsheet_id and the criteria list. Only one of these can be used at a time to define a rubric. The rubric criteria list is fully replaced by the rubric criteria specified in the update request. For example, if a criterion or level is missing from the request, it is deleted. New criteria and levels are added and an ID is assigned. Existing criteria and levels retain the previously assigned ID if the ID is specified in the request. The following fields can be specified by teachers: * criteria * source_spreadsheet_id

Request body

sourceSpreadsheetIdstring

Input only. Immutable. Google Sheets ID of the spreadsheet. This spreadsheet must contain formatted rubric settings. See Create or reuse a rubric for an assignment. Use of this field requires the https://www.googleapis.com/auth/spreadsheets.readonly or https://www.googleapis.com/auth/spreadsheets scope.

courseIdstring

Identifier of the course. Read-only.

creationTimestring google-datetime

Output only. Timestamp when this rubric was created. Read-only.

idstring

Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.

updateTimestring google-datetime

Output only. Timestamp of the most recent change to this rubric. Read-only.

courseWorkIdstring

Identifier for the course work this corresponds to. Read-only.

Response

Successful response