forked from instructure/pandarus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz_extensions.json
137 lines (137 loc) · 4.87 KB
/
quiz_extensions.json
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
{
"apiVersion": "1.0",
"swaggerVersion": "1.2",
"basePath": "https://canvas.instructure.com/api",
"resourcePath": "/quiz_extensions",
"produces": [
"application/json"
],
"apis": [
{
"path": "/v1/courses/{course_id}/quizzes/{quiz_id}/extensions",
"description": "<b>Responses</b>\n\n* <b>200 OK</b> if the request was successful\n* <b>403 Forbidden</b> if you are not allowed to extend quizzes for this course",
"operations": [
{
"method": "POST",
"summary": "Set extensions for student quiz submissions",
"notes": "<b>Responses</b>\n\n* <b>200 OK</b> if the request was successful\n* <b>403 Forbidden</b> if you are not allowed to extend quizzes for this course",
"nickname": "set_extensions_for_student_quiz_submissions",
"parameters": [
{
"paramType": "path",
"name": "course_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "path",
"name": "quiz_id",
"description": "ID",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "user_id",
"description": "The ID of the user we want to add quiz extensions for.",
"type": "integer",
"format": "int64",
"required": true
},
{
"paramType": "form",
"name": "extra_attempts",
"description": "Number of times the student is allowed to re-take the quiz over the\nmultiple-attempt limit. This is limited to 1000 attempts or less.",
"type": "integer",
"format": "int64",
"required": false
},
{
"paramType": "form",
"name": "extra_time",
"description": "The number of extra minutes to allow for all attempts. This will\nadd to the existing time limit on the submission. This is limited to\n10080 minutes (1 week)",
"type": "integer",
"format": "int64",
"required": false
},
{
"paramType": "form",
"name": "manually_unlocked",
"description": "Allow the student to take the quiz even if it's locked for\neveryone else.",
"type": "boolean",
"format": null,
"required": false
},
{
"paramType": "form",
"name": "extend_from_now",
"description": "The number of minutes to extend the quiz from the current time. This is\nmutually exclusive to extend_from_end_at. This is limited to 1440\nminutes (24 hours)",
"type": "integer",
"format": "int64",
"required": false
},
{
"paramType": "form",
"name": "extend_from_end_at",
"description": "The number of minutes to extend the quiz beyond the quiz's current\nending time. This is mutually exclusive to extend_from_now. This is\nlimited to 1440 minutes (24 hours)",
"type": "integer",
"format": "int64",
"required": false
}
],
"type": "void"
}
]
}
],
"models": {
"QuizExtension": {
"id": "QuizExtension",
"description": "",
"required": [
"quiz_id",
"user_id"
],
"properties": {
"quiz_id": {
"description": "The ID of the Quiz the quiz extension belongs to.",
"example": 2,
"type": "integer",
"format": "int64"
},
"user_id": {
"description": "The ID of the Student that needs the quiz extension.",
"example": 3,
"type": "integer",
"format": "int64"
},
"extra_attempts": {
"description": "Number of times the student is allowed to re-take the quiz over the multiple-attempt limit.",
"example": 1,
"type": "integer",
"format": "int64"
},
"extra_time": {
"description": "Amount of extra time allowed for the quiz submission, in minutes.",
"example": 60,
"type": "integer",
"format": "int64"
},
"manually_unlocked": {
"description": "The student can take the quiz even if it's locked for everyone else",
"example": true,
"type": "boolean"
},
"end_at": {
"description": "The time at which the quiz submission will be overdue, and be flagged as a late submission.",
"example": "2013-11-07T13:16:18Z",
"type": "string",
"format": "date-time"
}
}
}
}
}