courses

POST /v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics

Changed on

Creates a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see licensing requirements. For further details, see Rubrics structure and known limitations. 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 user isn't permitted to create rubrics for course work in the requested course. * INTERNAL if the request has insufficient OAuth scopes. * INVALID_ARGUMENT if the request is malformed and for the following request error: * RubricCriteriaInvalidFormat * NOT_FOUND if the requested course or course work don't exist or the user doesn't have access to the course or course work. * FAILED_PRECONDITION for the following request error: * AttachmentNotVisible

Request

  • Base URL
    https://classroom.googleapis.com
  • URL
    https://classroom.googleapis.com/v1/courses/{courseId}/courseWork/{courseWorkId}/rubrics
  • Auth
    OAuth 2 and OAuth 2
    Implicit: https://accounts.google.com/o/oauth2/auth
    Scopes: https://www.googleapis.com/auth/classroom.coursework.students
    Authorization code: https://accounts.google.com/o/oauth2/auth
    Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/classroom.coursework.students

Path parameters

courseIdstring required

Required. Identifier of the course.

courseWorkIdstring required

Required. Identifier of the course work.

Request body

courseIdstring

Identifier of the course. Read-only.

courseWorkIdstring

Identifier for the course work this corresponds to. 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.

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.

updateTimestring google-datetime

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

Response

Successful response

courseIdstring

Identifier of the course. Read-only.

courseWorkIdstring

Identifier for the course work this corresponds to. 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.

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.

updateTimestring google-datetime

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

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status