-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_doc_api_late_policy.html.txt
97 lines (72 loc) · 4.3 KB
/
_doc_api_late_policy.html.txt
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
Late Policy API
Manage a course's late policy.
A LatePolicy object looks like:
{
// the unique identifier for the late policy
"id": 123,
// the unique identifier for the course
"course_id": 123,
// whether to enable missing submission deductions
"missing_submission_deduction_enabled": true,
// amount of percentage points to deduct
"missing_submission_deduction": 12.34,
// whether to enable late submission deductions
"late_submission_deduction_enabled": true,
// amount of percentage points to deduct per late_submission_interval
"late_submission_deduction": 12.34,
// time interval for late submission deduction
"late_submission_interval": "hour",
// whether to enable late submission minimum percent
"late_submission_minimum_percent_enabled": true,
// the minimum score a submission can receive in percentage points
"late_submission_minimum_percent": 12.34,
// the time at which this late policy was originally created
"created_at": "2012-07-01T23:59:00-06:00",
// the time at which this late policy was last modified in any way
"updated_at": "2012-07-01T23:59:00-06:00"
}
Get a late policyLatePolicyController#show
GET /api/v1/courses/:id/late_policy
Returns the late policy for a course.
{
"late_policy": LatePolicy
}
Create a late policyLatePolicyController#create
POST /api/v1/courses/:id/late_policy
Create a late policy. If the course already has a late policy, a bad_request is returned since there can only be one late policy per course.
Parameter | | Type | Description
late_policy[missing_submission_deduction_enabled] | | boolean | Whether to enable the missing submission deduction late policy.
late_policy[missing_submission_deduction] | | number | How many percentage points to deduct from a missing submission.
late_policy[late_submission_deduction_enabled] | | boolean | Whether to enable the late submission deduction late policy.
late_policy[late_submission_deduction] | | number | How many percentage points to deduct per the late submission interval.
late_policy[late_submission_interval] | | string | The interval for late policies.
late_policy[late_submission_minimum_percent_enabled] | | boolean | Whether to enable the late submission minimum percent for a late policy.
late_policy[late_submission_minimum_percent] | | number | The minimum grade a submissions can have in percentage points.
Whether to enable the missing submission deduction late policy.
How many percentage points to deduct from a missing submission.
Whether to enable the late submission deduction late policy.
How many percentage points to deduct per the late submission interval.
The interval for late policies.
Whether to enable the late submission minimum percent for a late policy.
The minimum grade a submissions can have in percentage points.
{
"late_policy": LatePolicy
}
Patch a late policyLatePolicyController#update
PATCH /api/v1/courses/:id/late_policy
Patch a late policy. No body is returned upon success.
Parameter | | Type | Description
late_policy[missing_submission_deduction_enabled] | | boolean | Whether to enable the missing submission deduction late policy.
late_policy[missing_submission_deduction] | | number | How many percentage points to deduct from a missing submission.
late_policy[late_submission_deduction_enabled] | | boolean | Whether to enable the late submission deduction late policy.
late_policy[late_submission_deduction] | | number | How many percentage points to deduct per the late submission interval.
late_policy[late_submission_interval] | | string | The interval for late policies.
late_policy[late_submission_minimum_percent_enabled] | | boolean | Whether to enable the late submission minimum percent for a late policy.
late_policy[late_submission_minimum_percent] | | number | The minimum grade a submissions can have in percentage points.
Whether to enable the missing submission deduction late policy.
How many percentage points to deduct from a missing submission.
Whether to enable the late submission deduction late policy.
How many percentage points to deduct per the late submission interval.
The interval for late policies.
Whether to enable the late submission minimum percent for a late policy.
The minimum grade a submissions can have in percentage points.