Grading Periods API
BETA: This API resource is not finalized, and there could be breaking changes before its final release.
Manage grading periods
A GradingPeriod object looks like:
{
// The unique identifier for the grading period.
"id": 1023,
// The title for the grading period.
"title": "First Block",
// The start date of the grading period.
"start_date": "2014-01-07T15:04:00Z",
// The end date of the grading period.
"end_date": "2014-05-07T17:07:00Z",
// Grades can only be changed before the close date of the grading period.
"close_date": "2014-06-07T17:07:00Z",
// A weight value that contributes to the overall weight of a grading period set
// which is used to calculate how much assignments in this period contribute to the
// total grade
"weight": 33.33
}
List grading periods GradingPeriodsController#index
BETA: This API endpoint is not finalized, and there could be breaking changes before its final release.
GET /api/v1/accounts/:account_id/grading_periods
GET /api/v1/courses/:course_id/grading_periods
Returns the list of grading periods for the current course.
Example Response:
{
"grading_periods": [GradingPeriod]
}
Get a single grading period GradingPeriodsController#show
BETA: This API endpoint is not finalized, and there could be breaking changes before its final release.
GET /api/v1/courses/:course_id/grading_periods/:id
Returns the grading period with the given id
Example Response:
{
"grading_periods": [GradingPeriod]
}
Update a single grading period GradingPeriodsController#update
BETA: This API endpoint is not finalized, and there could be breaking changes before its final release.
PUT /api/v1/courses/:course_id/grading_periods/:id
Update an existing grading period.
Request Parameters:
Parameter | Type | Description | |
---|---|---|---|
grading_periods[][start_date] | Required | Date |
The date the grading period starts. |
grading_periods[][end_date] | Required | Date |
no description |
grading_periods[][weight] | Float |
A weight value that contributes to the overall weight of a grading period set which is used to calculate how much assignments in this period contribute to the total grade |
Example Response:
{
"grading_periods": [GradingPeriod]
}
Delete a grading period GradingPeriodsController#destroy
BETA: This API endpoint is not finalized, and there could be breaking changes before its final release.
DELETE /api/v1/courses/:course_id/grading_periods/:id
DELETE /api/v1/accounts/:account_id/grading_periods/:id
204 No Content response code is returned if the deletion was successful.