Debian Codegraph @

docs/dyn/classroom_v1.courses.courseWork.rubrics.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="classroom_v1.html">Google Classroom API</a> . <a href="classroom_v1.courses.html">courses</a> . <a href="classroom_v1.courses.courseWork.html">courseWork</a> . <a href="classroom_v1.courses.courseWork.rubrics.html">rubrics</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(courseId, courseWorkId, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) 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`</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(courseId, courseWorkId, id, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding rubric. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn't create the corresponding rubric, or if the requesting user isn't permitted to delete the requested rubric. * `NOT_FOUND` if no rubric exists with the requested ID or the user does not have access to the course, course work, or rubric. * `INVALID_ARGUMENT` if grading has already started on the rubric.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(courseId, courseWorkId, id, x__xgafv=None)</a></code></p>
88 <p class="firstline">Returns a rubric. 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, course work, or rubric doesn't exist or if the user doesn't have access to the corresponding course work.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(courseId, courseWorkId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Returns a list of rubrics that the requester is permitted to view. 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 or course work doesn't exist or if the user doesn't have access to the corresponding course work.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(courseId, courseWorkId, id, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) 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.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(courseId, courseWorkId, body=None, x__xgafv=None)</code>
106 <pre>Creates a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user isn&#x27;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&#x27;t exist or the user doesn&#x27;t have access to the course or course work. * `FAILED_PRECONDITION` for the following request error: * `AttachmentNotVisible`
107
108 Args:
109 courseId: string, Required. Identifier of the course. (required)
110 courseWorkId: string, Required. Identifier of the course work. (required)
111 body: object, The request body.
112 The object takes the form of:
113
114 { # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
115 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
116 &quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
117 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
118 &quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
119 { # A rubric criterion. Each criterion is a dimension on which performance is rated.
120 &quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
121 &quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
122 &quot;levels&quot;: [ # The list of levels within this criterion.
123 { # A level of the criterion.
124 &quot;description&quot;: &quot;A String&quot;, # The description of the level.
125 &quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
126 &quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
127 &quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
128 },
129 ],
130 &quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
131 },
132 ],
133 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
134 &quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # 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](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
135 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
136 }
137
138 x__xgafv: string, V1 error format.
139 Allowed values
140 1 - v1 error format
141 2 - v2 error format
142
143 Returns:
144 An object of the form:
145
146 { # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
147 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
148 &quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
149 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
150 &quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
151 { # A rubric criterion. Each criterion is a dimension on which performance is rated.
152 &quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
153 &quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
154 &quot;levels&quot;: [ # The list of levels within this criterion.
155 { # A level of the criterion.
156 &quot;description&quot;: &quot;A String&quot;, # The description of the level.
157 &quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
158 &quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
159 &quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
160 },
161 ],
162 &quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
163 },
164 ],
165 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
166 &quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # 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](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
167 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
168 }</pre>
169 </div>
170
171 <div class="method">
172 <code class="details" id="delete">delete(courseId, courseWorkId, id, x__xgafv=None)</code>
173 <pre>Deletes a rubric. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding rubric. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn&#x27;t create the corresponding rubric, or if the requesting user isn&#x27;t permitted to delete the requested rubric. * `NOT_FOUND` if no rubric exists with the requested ID or the user does not have access to the course, course work, or rubric. * `INVALID_ARGUMENT` if grading has already started on the rubric.
174
175 Args:
176 courseId: string, Required. Identifier of the course. (required)
177 courseWorkId: string, Required. Identifier of the course work. (required)
178 id: string, Required. Identifier of the rubric. (required)
179 x__xgafv: string, V1 error format.
180 Allowed values
181 1 - v1 error format
182 2 - v2 error format
183
184 Returns:
185 An object of the form:
186
187 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
188 }</pre>
189 </div>
190
191 <div class="method">
192 <code class="details" id="get">get(courseId, courseWorkId, id, x__xgafv=None)</code>
193 <pre>Returns a rubric. 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, course work, or rubric doesn&#x27;t exist or if the user doesn&#x27;t have access to the corresponding course work.
194
195 Args:
196 courseId: string, Required. Identifier of the course. (required)
197 courseWorkId: string, Required. Identifier of the course work. (required)
198 id: string, Required. Identifier of the rubric. (required)
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204 Returns:
205 An object of the form:
206
207 { # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
208 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
209 &quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
210 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
211 &quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
212 { # A rubric criterion. Each criterion is a dimension on which performance is rated.
213 &quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
214 &quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
215 &quot;levels&quot;: [ # The list of levels within this criterion.
216 { # A level of the criterion.
217 &quot;description&quot;: &quot;A String&quot;, # The description of the level.
218 &quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
219 &quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
220 &quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
221 },
222 ],
223 &quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
224 },
225 ],
226 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
227 &quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # 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](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
228 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
229 }</pre>
230 </div>
231
232 <div class="method">
233 <code class="details" id="list">list(courseId, courseWorkId, pageSize=None, pageToken=None, x__xgafv=None)</code>
234 <pre>Returns a list of rubrics that the requester is permitted to view. 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 or course work doesn&#x27;t exist or if the user doesn&#x27;t have access to the corresponding course work.
235
236 Args:
237 courseId: string, Required. Identifier of the course. (required)
238 courseWorkId: string, Required. Identifier of the course work. (required)
239 pageSize: integer, The maximum number of rubrics to return. If unspecified, at most 1 rubric is returned. The maximum value is 1; values above 1 are coerced to 1.
240 pageToken: string, nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.
241 x__xgafv: string, V1 error format.
242 Allowed values
243 1 - v1 error format
244 2 - v2 error format
245
246 Returns:
247 An object of the form:
248
249 { # Response when listing rubrics.
250 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token identifying the next page of results to return. If empty, no further results are available.
251 &quot;rubrics&quot;: [ # Rubrics that match the request.
252 { # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
253 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
254 &quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
255 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
256 &quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
257 { # A rubric criterion. Each criterion is a dimension on which performance is rated.
258 &quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
259 &quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
260 &quot;levels&quot;: [ # The list of levels within this criterion.
261 { # A level of the criterion.
262 &quot;description&quot;: &quot;A String&quot;, # The description of the level.
263 &quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
264 &quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
265 &quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
266 },
267 ],
268 &quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
269 },
270 ],
271 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
272 &quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # 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](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
273 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
274 },
275 ],
276 }</pre>
277 </div>
278
279 <div class="method">
280 <code class="details" id="list_next">list_next()</code>
281 <pre>Retrieves the next page of results.
282
283 Args:
284 previous_request: The request for the previous page. (required)
285 previous_response: The response from the request for the previous page. (required)
286
287 Returns:
288 A request object that you can call &#x27;execute()&#x27; on to request the next
289 page. Returns None if there are no more items in the collection.
290 </pre>
291 </div>
292
293 <div class="method">
294 <code class="details" id="patch">patch(courseId, courseWorkId, id, body=None, updateMask=None, x__xgafv=None)</code>
295 <pre>Updates a rubric. See google.classroom.v1.Rubric for details of which fields can be updated. Rubric update capabilities are [limited](/classroom/rubrics/limitations) once grading has started. The requesting user and course owner must have rubrics creation capabilities. For details, see [licensing requirements](https://developers.google.com/workspace/classroom/rubrics/limitations#license-requirements). This request must be made by the Google Cloud console of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the parent course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project didn&#x27;t create the corresponding course work, if the user isn&#x27;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&#x27;t exist or if the user doesn&#x27;t have access to the corresponding course work. * `INTERNAL` if grading has already started on the rubric.
296
297 Args:
298 courseId: string, Required. Identifier of the course. (required)
299 courseWorkId: string, Required. Identifier of the course work. (required)
300 id: string, Optional. Identifier of the rubric. (required)
301 body: object, The request body.
302 The object takes the form of:
303
304 { # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
305 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
306 &quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
307 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
308 &quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
309 { # A rubric criterion. Each criterion is a dimension on which performance is rated.
310 &quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
311 &quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
312 &quot;levels&quot;: [ # The list of levels within this criterion.
313 { # A level of the criterion.
314 &quot;description&quot;: &quot;A String&quot;, # The description of the level.
315 &quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
316 &quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
317 &quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
318 },
319 ],
320 &quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
321 },
322 ],
323 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
324 &quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # 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](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
325 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
326 }
327
328 updateMask: string, 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`
329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
333
334 Returns:
335 An object of the form:
336
337 { # The rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see [Rubrics structure and known limitations](/classroom/rubrics/limitations).
338 &quot;courseId&quot;: &quot;A String&quot;, # Identifier of the course. Read-only.
339 &quot;courseWorkId&quot;: &quot;A String&quot;, # Identifier for the course work this corresponds to. Read-only.
340 &quot;creationTime&quot;: &quot;A String&quot;, # Output only. Timestamp when this rubric was created. Read-only.
341 &quot;criteria&quot;: [ # List of criteria. Each criterion is a dimension on which performance is rated.
342 { # A rubric criterion. Each criterion is a dimension on which performance is rated.
343 &quot;description&quot;: &quot;A String&quot;, # The description of the criterion.
344 &quot;id&quot;: &quot;A String&quot;, # The criterion ID. On creation, an ID is assigned.
345 &quot;levels&quot;: [ # The list of levels within this criterion.
346 { # A level of the criterion.
347 &quot;description&quot;: &quot;A String&quot;, # The description of the level.
348 &quot;id&quot;: &quot;A String&quot;, # The level ID. On creation, an ID is assigned.
349 &quot;points&quot;: 3.14, # Optional points associated with this level. If set, all levels within the rubric must specify points and the value must be distinct across all levels within a single criterion. 0 is distinct from no points.
350 &quot;title&quot;: &quot;A String&quot;, # The title of the level. If the level has no points set, title must be set.
351 },
352 ],
353 &quot;title&quot;: &quot;A String&quot;, # The title of the criterion.
354 },
355 ],
356 &quot;id&quot;: &quot;A String&quot;, # Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only.
357 &quot;sourceSpreadsheetId&quot;: &quot;A String&quot;, # 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](https://support.google.com/edu/classroom/answer/9335069). Use of this field requires the `https://www.googleapis.com/auth/spreadsheets.readonly` or `https://www.googleapis.com/auth/spreadsheets` scope.
358 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the most recent change to this rubric. Read-only.
359 }</pre>
360 </div>
361
362 </body></html>