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 policy LatePolicyController#show
GET /api/v1/courses/:id/late_policy
url:GET|/api/v1/courses/:id/late_policy
Returns the late policy for a course.
Example Response:
{
"late_policy": LatePolicy
}
Create a late policy LatePolicyController#create
POST /api/v1/courses/:id/late_policy
url: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.
Request Parameters:
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. |
Example Response:
{
"late_policy": LatePolicy
}
Patch a late policy LatePolicyController#update
PATCH /api/v1/courses/:id/late_policy
url:PATCH|/api/v1/courses/:id/late_policy
Patch a late policy. No body is returned upon success.
Request Parameters:
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. |