-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathassignment_groups.json
More file actions
390 lines (387 loc) · 13.1 KB
/
assignment_groups.json
File metadata and controls
390 lines (387 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
{
"apiVersion": "1.0",
"swaggerVersion": "1.2",
"basePath": "https://canvas.instructure.com/api",
"resourcePath": "/assignment_groups",
"produces": [
"application/json"
],
"apis": [
{
"path": "/v1/courses/{course_id}/assignment_groups",
"description": "Returns the paginated list of assignment groups for the current context.\nThe returned groups are sorted by their position field.",
"operations": [
{
"method": "GET",
"summary": "List assignment groups",
"notes": "Returns the paginated list of assignment groups for the current context.\nThe returned groups are sorted by their position field.",
"nickname": "list_assignment_groups",
"parameters": [
{
"paramType": "path",
"name": "course_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "query",
"name": "include",
"description": "Associations to include with the group. \"discussion_topic\", \"all_dates\"\n\"assignment_visibility\" & \"submission\" are only valid if \"assignments\" is also included.\nThe \"assignment_visibility\" option additionally requires that the Differentiated Assignments course feature be turned on.",
"type": "array",
"format": null,
"required": false,
"enum": [
"assignments",
"discussion_topic",
"all_dates",
"assignment_visibility",
"overrides",
"submission"
],
"items": {
"type": "string"
}
},
{
"paramType": "query",
"name": "exclude_assignment_submission_types",
"description": "If \"assignments\" are included, those with the specified submission types\nwill be excluded from the assignment groups.",
"type": "array",
"format": null,
"required": false,
"enum": [
"online_quiz",
"discussion_topic",
"wiki_page",
"external_tool"
],
"items": {
"type": "string"
}
},
{
"paramType": "query",
"name": "override_assignment_dates",
"description": "Apply assignment overrides for each assignment, defaults to true.",
"type": "boolean",
"format": null,
"required": false
},
{
"paramType": "query",
"name": "grading_period_id",
"description": "The id of the grading period in which assignment groups are being requested\n(Requires grading periods to exist.)",
"type": "integer",
"format": "int64",
"required": false
},
{
"paramType": "query",
"name": "scope_assignments_to_student",
"description": "If true, all assignments returned will apply to the current user in the\nspecified grading period. If assignments apply to other students in the\nspecified grading period, but not the current user, they will not be\nreturned. (Requires the grading_period_id argument and grading periods to\nexist. In addition, the current user must be a student.)",
"type": "boolean",
"format": null,
"required": false
}
],
"type": "array",
"items": {
"$ref": "AssignmentGroup"
}
}
]
},
{
"path": "/v1/courses/{course_id}/assignment_groups/{assignment_group_id}",
"description": "Returns the assignment group with the given id.",
"operations": [
{
"method": "GET",
"summary": "Get an Assignment Group",
"notes": "Returns the assignment group with the given id.",
"nickname": "get_assignment_group",
"parameters": [
{
"paramType": "path",
"name": "course_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "assignment_group_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "query",
"name": "include",
"description": "Associations to include with the group. \"discussion_topic\" and \"assignment_visibility\" and \"submission\"\nare only valid if \"assignments\" is also included. The \"assignment_visibility\" option additionally\nrequires that the Differentiated Assignments course feature be turned on.",
"type": "array",
"format": null,
"required": false,
"enum": [
"assignments",
"discussion_topic",
"assignment_visibility",
"submission"
],
"items": {
"type": "string"
}
},
{
"paramType": "query",
"name": "override_assignment_dates",
"description": "Apply assignment overrides for each assignment, defaults to true.",
"type": "boolean",
"format": null,
"required": false
},
{
"paramType": "query",
"name": "grading_period_id",
"description": "The id of the grading period in which assignment groups are being requested\n(Requires grading periods to exist on the account)",
"type": "integer",
"format": "int64",
"required": false
}
],
"type": "AssignmentGroup"
}
]
},
{
"path": "/v1/courses/{course_id}/assignment_groups",
"description": "Create a new assignment group for this course.",
"operations": [
{
"method": "POST",
"summary": "Create an Assignment Group",
"notes": "Create a new assignment group for this course.",
"nickname": "create_assignment_group",
"parameters": [
{
"paramType": "path",
"name": "course_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "name",
"description": "The assignment group's name",
"type": "string",
"format": null,
"required": false
},
{
"paramType": "form",
"name": "position",
"description": "The position of this assignment group in relation to the other assignment groups",
"type": "integer",
"format": "int64",
"required": false
},
{
"paramType": "form",
"name": "group_weight",
"description": "The percent of the total grade that this assignment group represents",
"type": "number",
"format": "float",
"required": false
},
{
"paramType": "form",
"name": "sis_source_id",
"description": "The sis source id of the Assignment Group",
"type": "string",
"format": null,
"required": false
},
{
"paramType": "form",
"name": "integration_data",
"description": "The integration data of the Assignment Group",
"type": "Object",
"format": null,
"required": false
},
{
"paramType": "form",
"name": "rules",
"description": "The grading rules that are applied within this assignment group\nSee the Assignment Group object definition for format",
"type": "string",
"format": null,
"required": false
}
],
"type": "AssignmentGroup"
}
]
},
{
"path": "/v1/courses/{course_id}/assignment_groups/{assignment_group_id}",
"description": "Modify an existing Assignment Group.\nAccepts the same parameters as Assignment Group creation",
"operations": [
{
"method": "PUT",
"summary": "Edit an Assignment Group",
"notes": "Modify an existing Assignment Group.\nAccepts the same parameters as Assignment Group creation",
"nickname": "edit_assignment_group",
"parameters": [
{
"paramType": "path",
"name": "course_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "assignment_group_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "AssignmentGroup"
}
]
},
{
"path": "/v1/courses/{course_id}/assignment_groups/{assignment_group_id}",
"description": "Deletes the assignment group with the given id.",
"operations": [
{
"method": "DELETE",
"summary": "Destroy an Assignment Group",
"notes": "Deletes the assignment group with the given id.",
"nickname": "destroy_assignment_group",
"parameters": [
{
"paramType": "path",
"name": "course_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "assignment_group_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "query",
"name": "move_assignments_to",
"description": "The ID of an active Assignment Group to which the assignments that are\ncurrently assigned to the destroyed Assignment Group will be assigned.\nNOTE: If this argument is not provided, any assignments in this Assignment\nGroup will be deleted.",
"type": "integer",
"format": "int64",
"required": false
}
],
"type": "AssignmentGroup"
}
]
}
],
"models": {
"GradingRules": {
"id": "GradingRules",
"description": "",
"required": [
],
"properties": {
"drop_lowest": {
"description": "Number of lowest scores to be dropped for each user.",
"example": 1,
"type": "integer"
},
"drop_highest": {
"description": "Number of highest scores to be dropped for each user.",
"example": 1,
"type": "integer"
},
"never_drop": {
"description": "Assignment IDs that should never be dropped.",
"example": [
33,
17,
24
],
"type": "array",
"items": {
"type": "integer"
}
}
}
},
"AssignmentGroup": {
"id": "AssignmentGroup",
"description": "",
"required": [
],
"properties": {
"id": {
"description": "the id of the Assignment Group",
"example": 1,
"type": "integer"
},
"name": {
"description": "the name of the Assignment Group",
"example": "group2",
"type": "string"
},
"position": {
"description": "the position of the Assignment Group",
"example": 7,
"type": "integer"
},
"group_weight": {
"description": "the weight of the Assignment Group",
"example": 20,
"type": "integer"
},
"sis_source_id": {
"description": "the sis source id of the Assignment Group",
"example": "1234",
"type": "string"
},
"integration_data": {
"description": "the integration data of the Assignment Group",
"example": {
"5678": "0954"
},
"type": "object"
},
"assignments": {
"description": "the assignments in this Assignment Group (see the Assignment API for a detailed list of fields)",
"example": [
],
"type": "array",
"items": {
"type": "integer"
}
},
"rules": {
"description": "the grading rules that this Assignment Group has",
"$ref": "GradingRules"
}
}
}
}
}