Course Pace

Course Pace API

API for accessing and building Course Paces.

A CoursePace object looks like:

{
  // the ID of the course pace
  "id": 5,
  // the ID of the course
  "course_id": 5,
  // the ID of the user for this course pace
  "user_id": 10,
  // the state of the course pace
  "workflow_state": "active",
  // boolean value depending on exclude weekends setting
  "exclude_weekends": true,
  // array of strings representing the days of the work week
  "selected_days_to_skip": [fri, sat],
  // set if the end date is set from course
  "hard_end_dates": true,
  // date when course pace is created
  "created_at": "2013-01-23T23:59:00-07:00",
  // course end date
  "end_date": "2013-01-23T23:59:00-07:00",
  // date when course pace is updated
  "updated_at": "2013-01-23T23:59:00-07:00",
  // date when course pace is published
  "published_at": "2013-01-23T23:59:00-07:00",
  // the root account ID for this course pace
  "root_account_id": 10,
  // course start date
  "start_date": "2013-01-23T23:59:00-07:00",
  // list of modules and items for this course pace
  "modules": null,
  // progress of pace publishing
  "progress": null
}

A Module object looks like:

A ModuleItem object looks like:

A Progress object looks like:

CoursePacesController#api_show

GET /api/v1/courses/:course_id/course_pacing/:id

Scope: url:GET|/api/v1/courses/:course_id/course_pacing/:id

Returns a course pace for the course and pace id provided

Request Parameters:

Parameter
Type
Description

course_id

Required integer

The id of the course

course_pace_id

Required integer

The id of the course_pace

Example Request:

Returns a CoursePace object.

CoursePacesController#create

POST /api/v1/courses/:course_id/course_pacing

Scope: url:POST|/api/v1/courses/:course_id/course_pacing

Creates a new course pace with specified parameters.

Request Parameters:

Parameter
Type
Description

course_id

Required integer

The id of the course

end_date

Datetime

End date of the course pace

end_date_context

string

End date context (course, section, hupothetical)

start_date

Datetime

Start date of the course pace

start_date_context

string

Start date context (course, section, hupothetical)

exclude_weekends

boolean

Course pace dates excludes weekends if true

selected_days_to_skip

string

  • Array

    Course pace dates excludes weekends if true

hard_end_dates

boolean

Course pace uess hard end dates if true

workflow_state

string

The state of the course pace

course_pace_module_item_attributes[]

string

Module Items attributes

context_id

integer

Pace Context ID

context_type

string

Pace Context Type (Course, Section, User)

Example Request:

Returns a CoursePace object.

CoursePacesController#update

PUT /api/v1/courses/:course_id/course_pacing/:id

Scope: url:PUT|/api/v1/courses/:course_id/course_pacing/:id

Returns the updated course pace

Request Parameters:

Parameter
Type
Description

course_id

Required integer

The id of the course

course_pace_id

Required integer

The id of the course pace

end_date

Datetime

End date of the course pace

exclude_weekends

boolean

Course pace dates excludes weekends if true

selected_days_to_skip

string

  • Array

    Course pace dates excludes weekends if true

hard_end_dates

boolean

Course pace uess hard end dates if true

workflow_state

string

The state of the course pace

course_pace_module_item_attributes[]

string

Module Items attributes

Example Request:

Returns a CoursePace object.

CoursePacesController#destroy

DELETE /api/v1/courses/:course_id/course_pacing/:id

Scope: url:DELETE|/api/v1/courses/:course_id/course_pacing/:id

Returns the updated course pace

Request Parameters:

Parameter
Type
Description

course_id

Required integer

The id of the course

course_pace_id

Required integer

The id of the course_pace

Example Request:

Returns a CoursePace object.


This documentation is generated directly from the Canvas LMS source code, available on Github.

Last updated

Was this helpful?