# Courses

{% hint style="warning" %}
**Welcome to Our New API Docs!** This is the new home for all things API (previously at [Canvas LMS REST API Documentation](https://api.instructure.com)).
{% endhint %}

## Courses API

API for accessing course information.

**A Term object looks like:**

```js
{
  "id": 1,
  "name": "Default Term",
  "start_at": "2012-06-01T00:00:00-06:00",
  "end_at": null
}
```

**A CourseProgress object looks like:**

```js
{
  // total number of requirements from all modules
  "requirement_count": 10,
  // total number of requirements the user has completed from all modules
  "requirement_completed_count": 1,
  // url to next module item that has an unmet requirement. null if the user has
  // completed the course or the current module does not require sequential
  // progress
  "next_requirement_url": "http://localhost/courses/1/modules/items/2",
  // date the course was completed. null if the course has not been completed by
  // this user
  "completed_at": "2013-06-01T00:00:00-06:00"
}
```

**A Course object looks like:**

```js
{
  // the unique identifier for the course
  "id": 370663,
  // the SIS identifier for the course, if defined. This field is only included if
  // the user has permission to view SIS information.
  "sis_course_id": null,
  // the UUID of the course
  "uuid": "WvAHhY5FINzq5IyRIJybGeiXyFkG3SqHUPb7jZY5",
  // the integration identifier for the course, if defined. This field is only
  // included if the user has permission to view SIS information.
  "integration_id": null,
  // the unique identifier for the SIS import. This field is only included if the
  // user has permission to manage SIS information.
  "sis_import_id": 34,
  // the full name of the course. If the requesting user has set a nickname for
  // the course, the nickname will be shown here.
  "name": "InstructureCon 2012",
  // the course code
  "course_code": "INSTCON12",
  // the actual course name. This field is returned only if the requesting user
  // has set a nickname for the course.
  "original_name": "InstructureCon-2012-01",
  // the current state of the course, also known as ‘status’.  The value will be
  // one of the following values: 'unpublished', 'available', 'completed', or
  // 'deleted'.  NOTE: When fetching a singular course that has a 'deleted'
  // workflow state value, an error will be returned with a message of 'The
  // specified resource does not exist.'
  "workflow_state": "available",
  // the account associated with the course
  "account_id": 81259,
  // the root account associated with the course
  "root_account_id": 81259,
  // the enrollment term associated with the course
  "enrollment_term_id": 34,
  // A list of grading periods associated with the course
  "grading_periods": null,
  // the grading standard associated with the course
  "grading_standard_id": 25,
  // the grade_passback_setting set on the course
  "grade_passback_setting": "nightly_sync",
  // the date the course was created.
  "created_at": "2012-05-01T00:00:00-06:00",
  // the start date for the course, if applicable
  "start_at": "2012-06-01T00:00:00-06:00",
  // the end date for the course, if applicable
  "end_at": "2012-09-01T00:00:00-06:00",
  // the course-set locale, if applicable
  "locale": "en",
  // A list of enrollments linking the current user to the course. for student
  // enrollments, grading information may be included if include[]=total_scores
  "enrollments": null,
  // optional: the total number of active and invited students in the course
  "total_students": 32,
  // course calendar
  "calendar": null,
  // the type of page that users will see when they first visit the course -
  // 'feed': Recent Activity Dashboard - 'wiki': Wiki Front Page - 'modules':
  // Course Modules/Sections Page - 'assignments': Course Assignments List -
  // 'syllabus': Course Syllabus Page other types may be added in the future
  "default_view": "feed",
  // optional: user-generated HTML for the course syllabus
  "syllabus_body": "<p>syllabus html goes here</p>",
  // optional: the number of submissions needing grading returned only if the
  // current user has grading rights and include[]=needs_grading_count
  "needs_grading_count": 17,
  // optional: the enrollment term object for the course returned only if
  // include[]=term
  "term": null,
  // optional: information on progress through the course returned only if
  // include[]=course_progress
  "course_progress": null,
  // weight final grade based on assignment group percentages
  "apply_assignment_group_weights": true,
  // optional: the permissions the user has for the course. returned only for a
  // single course and include[]=permissions
  "permissions": {"create_discussion_topic":true,"create_announcement":true},
  "is_public": true,
  "is_public_to_auth_users": true,
  "public_syllabus": true,
  "public_syllabus_to_auth": true,
  // optional: the public description of the course
  "public_description": "Come one, come all to InstructureCon 2012!",
  "storage_quota_mb": 5,
  "storage_quota_used_mb": 5,
  "hide_final_grades": false,
  "license": "Creative Commons",
  "allow_student_assignment_edits": false,
  "allow_wiki_comments": false,
  "allow_student_forum_attachments": false,
  "open_enrollment": true,
  "self_enrollment": false,
  "restrict_enrollments_to_course_dates": false,
  "course_format": "online",
  // optional: this will be true if this user is currently prevented from viewing
  // the course because of date restriction settings
  "access_restricted_by_date": false,
  // The course's IANA time zone name.
  "time_zone": "America/Denver",
  // optional: whether the course is set as a Blueprint Course (blueprint fields
  // require the Blueprint Courses feature)
  "blueprint": true,
  // optional: Set of restrictions applied to all locked course objects
  "blueprint_restrictions": {"content":true,"points":true,"due_dates":false,"availability_dates":false},
  // optional: Sets of restrictions differentiated by object type applied to
  // locked course objects
  "blueprint_restrictions_by_object_type": {"assignment":{"content":true,"points":true},"wiki_page":{"content":true}},
  // optional: whether the course is set as a template (requires the Course
  // Templates feature)
  "template": true
}
```

**A CalendarLink object looks like:**

```js
{
  // The URL of the calendar in ICS format
  "ics": "https://canvas.instructure.com/feeds/calendars/course_abcdef.ics"
}
```

### [List your courses](#method.courses.index) <a href="#method.courses.index" id="method.courses.index"></a>

[CoursesController#index](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses`**

**Scope:** `url:GET|/api/v1/courses`

Returns the paginated list of active courses for the current user.

**Request Parameters:**

| Parameter                   | Type      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| --------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `enrollment_type`           | `string`  | <p>When set, only return courses where the user is enrolled as this type. For example, set to “teacher” to return only courses where the user is enrolled as a Teacher. This argument is ignored if enrollment\_role is given.</p><p>Allowed values: <code>teacher</code>, <code>student</code>, <code>ta</code>, <code>observer</code>, <code>designer</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `enrollment_role`           | `string`  | Deprecated When set, only return courses where the user is enrolled with the specified course-level role. This can be a role created with the [Add Role API](https://developerdocs.instructure.com/services/canvas/roles#method.role_overrides.add_role) or a base role type of ‘StudentEnrollment’, ‘TeacherEnrollment’, ‘TaEnrollment’, ‘ObserverEnrollment’, or ‘DesignerEnrollment’.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `enrollment_role_id`        | `integer` | When set, only return courses where the user is enrolled with the specified course-level role. This can be a role created with the [Add Role API](https://developerdocs.instructure.com/services/canvas/roles#method.role_overrides.add_role) or a built\_in role type of ‘StudentEnrollment’, ‘TeacherEnrollment’, ‘TaEnrollment’, ‘ObserverEnrollment’, or ‘DesignerEnrollment’.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `enrollment_state`          | `string`  | <p>When set, only return courses where the user has an enrollment with the given state. This will respect section/course/term date overrides.</p><p>Allowed values: <code>active</code>, <code>invited\_or\_pending</code>, <code>completed</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `exclude_blueprint_courses` | `boolean` | When set, only return courses that are not configured as blueprint courses.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `include[]`                 | `string`  | <ul><li><p><br></p><p>“needs\_grading\_count”: Optional information to include with each Course. When needs\_grading\_count is given, and the current user has grading rights, the total number of submissions needing grading for all assignments is returned.</p><p><br></p></li><li><p><br></p><p>“syllabus\_body”: Optional information to include with each Course. When syllabus\_body is given the user-generated html for the course syllabus is returned.</p><p><br></p></li><li><p><br></p><p>“public\_description”: Optional information to include with each Course. When public\_description is given the user-generated text for the course public description is returned.</p><p><br></p></li><li><p><br></p><p>“total\_scores”: Optional information to include with each Course. When total\_scores is given, any student enrollments will also include the fields ‘computed\_current\_score’, ‘computed\_final\_score’, ‘computed\_current\_grade’, and ‘computed\_final\_grade’, as well as (if the user has permission) ‘unposted\_current\_score’, ‘unposted\_final\_score’, ‘unposted\_current\_grade’, and ‘unposted\_final\_grade’ (see Enrollment documentation for more information on these fields). This argument is ignored if the course is configured to hide final grades.</p><p><br></p></li><li><p><br></p><p>“current\_grading\_period\_scores”: Optional information to include with each Course. When current\_grading\_period\_scores is given and total\_scores is given, any student enrollments will also include the fields ‘has\_grading\_periods’, ‘totals\_for\_all\_grading\_periods\_option’, ‘current\_grading\_period\_title’, ‘current\_grading\_period\_id’, current\_period\_computed\_current\_score’, ‘current\_period\_computed\_final\_score’, ‘current\_period\_computed\_current\_grade’, and ‘current\_period\_computed\_final\_grade’, as well as (if the user has permission) ‘current\_period\_unposted\_current\_score’, ‘current\_period\_unposted\_final\_score’, ‘current\_period\_unposted\_current\_grade’, and ‘current\_period\_unposted\_final\_grade’ (see Enrollment documentation for more information on these fields). In addition, when this argument is passed, the course will have a ‘has\_grading\_periods’ attribute on it. This argument is ignored if the total\_scores argument is not included. If the course is configured to hide final grades, the following fields are not returned: ‘totals\_for\_all\_grading\_periods\_option’, ‘current\_period\_computed\_current\_score’, ‘current\_period\_computed\_final\_score’, ‘current\_period\_computed\_current\_grade’, ‘current\_period\_computed\_final\_grade’, ‘current\_period\_unposted\_current\_score’, ‘current\_period\_unposted\_final\_score’, ‘current\_period\_unposted\_current\_grade’, and ‘current\_period\_unposted\_final\_grade’</p><p><br></p></li><li><p><br></p><p>“grading\_periods”: Optional information to include with each Course. When grading\_periods is given, a list of the grading periods associated with each course is returned.</p><p><br></p></li><li><p><br></p><p>“term”: Optional information to include with each Course. When term is given, the information for the enrollment term for each course is returned.</p><p><br></p></li><li><p><br></p><p>“account”: Optional information to include with each Course. When account is given, the account json for each course is returned.</p><p><br></p></li><li><p><br></p><p>“course\_progress”: Optional information to include with each Course. When course\_progress is given, each course will include a ‘course\_progress’ object with the fields: ‘requirement\_count’, an integer specifying the total number of requirements in the course, ‘requirement\_completed\_count’, an integer specifying the total number of requirements in this course that have been completed, and ‘next\_requirement\_url’, a string url to the next requirement item, and ‘completed\_at’, the date the course was completed (null if incomplete). ‘next\_requirement\_url’ will be null if all requirements have been completed or the current module does not require sequential progress. “course\_progress” will return an error message if the course is not module based or the user is not enrolled as a student in the course.</p><p><br></p></li><li><p><br></p><p>“sections”: Section enrollment information to include with each Course. Returns an array of hashes containing the section ID (id), section name (name), start and end dates (start\_at, end\_at), as well as the enrollment type (enrollment\_role, e.g. ‘StudentEnrollment’).</p><p><br></p></li><li><p><br></p><p>“storage\_quota\_used\_mb”: The amount of storage space used by the files in this course</p><p><br></p></li><li><p><br></p><p>“total\_students”: Optional information to include with each Course. Returns an integer for the total amount of active and invited students.</p><p><br></p></li><li><p><br></p><p>“passback\_status”: Include the grade passback\_status</p><p><br></p></li><li><p><br></p><p>“favorites”: Optional information to include with each Course. Indicates if the user has marked the course as a favorite course.</p><p><br></p></li><li><p><br></p><p>“teachers”: Teacher information to include with each Course. Returns an array of hashes containing the <a href="../users#UserDisplay">UserDisplay</a> information for each teacher in the course.</p><p><br></p></li><li><p><br></p><p>“observed\_users”: Optional information to include with each Course. Will include data for observed users if the current user has an observer enrollment.</p><p><br></p></li><li><p><br></p><p>“tabs”: Optional information to include with each Course. Will include the list of tabs configured for each course. See the <a href="../tabs#method.tabs.index">List available tabs API</a> for more information.</p><p><br></p></li><li><p><br></p><p>“course\_image”: Optional information to include with each Course. Returns course image url if a course image has been set.</p><p><br></p></li><li><p><br></p><p>“banner\_image”: Optional information to include with each Course. Returns course banner image url if the course is a Canvas for Elementary subject and a banner image has been set.</p><p><br></p></li><li><p><br></p><p>“concluded”: Optional information to include with each Course. Indicates whether the course has been concluded, taking course and term dates into account.</p><p><br></p></li><li><p><br></p><p>“post\_manually”: Optional information to include with each Course. Returns true if the course post policy is set to Manually post grades. Returns false if the the course post policy is set to Automatically post grades.</p><p><br></p></li></ul><p>Allowed values: <code>needs\_grading\_count</code>, <code>syllabus\_body</code>, <code>public\_description</code>, <code>total\_scores</code>, <code>current\_grading\_period\_scores</code>, <code>grading\_periods</code>, <code>term</code>, <code>account</code>, <code>course\_progress</code>, <code>sections</code>, <code>storage\_quota\_used\_mb</code>, <code>total\_students</code>, <code>passback\_status</code>, <code>favorites</code>, <code>teachers</code>, <code>observed\_users</code>, <code>course\_image</code>, <code>banner\_image</code>, <code>concluded</code>, <code>post\_manually</code></p> |
| `state[]`                   | `string`  | <p>If set, only return courses that are in the given state(s). By default, “available” is returned for students and observers, and anything except “deleted”, for all other enrollment types</p><p>Allowed values: <code>unpublished</code>, <code>available</code>, <code>completed</code>, <code>deleted</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

Returns a list of [Course](#course) objects.

### [List courses for a user](#method.courses.user_index) <a href="#method.courses.user_index" id="method.courses.user_index"></a>

[CoursesController#user\_index](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/users/:user_id/courses`**

**Scope:** `url:GET|/api/v1/users/:user_id/courses`

Returns a paginated list of active courses for this user. To view the course list for a user other than yourself, you must be either an observer of that user or an administrator.

**Request Parameters:**

| Parameter          | Type      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `include[]`        | `string`  | <ul><li><p><br></p><p>“needs\_grading\_count”: Optional information to include with each Course. When needs\_grading\_count is given, and the current user has grading rights, the total number of submissions needing grading for all assignments is returned.</p><p><br></p></li><li><p><br></p><p>“syllabus\_body”: Optional information to include with each Course. When syllabus\_body is given the user-generated html for the course syllabus is returned.</p><p><br></p></li><li><p><br></p><p>“public\_description”: Optional information to include with each Course. When public\_description is given the user-generated text for the course public description is returned.</p><p><br></p></li><li><p><br></p><p>“total\_scores”: Optional information to include with each Course. When total\_scores is given, any student enrollments will also include the fields ‘computed\_current\_score’, ‘computed\_final\_score’, ‘computed\_current\_grade’, and ‘computed\_final\_grade’ (see Enrollment documentation for more information on these fields). This argument is ignored if the course is configured to hide final grades.</p><p><br></p></li><li><p><br></p><p>“current\_grading\_period\_scores”: Optional information to include with each Course. When current\_grading\_period\_scores is given and total\_scores is given, any student enrollments will also include the fields ‘has\_grading\_periods’, ‘totals\_for\_all\_grading\_periods\_option’, ‘current\_grading\_period\_title’, ‘current\_grading\_period\_id’, current\_period\_computed\_current\_score’, ‘current\_period\_computed\_final\_score’, ‘current\_period\_computed\_current\_grade’, and ‘current\_period\_computed\_final\_grade’, as well as (if the user has permission) ‘current\_period\_unposted\_current\_score’, ‘current\_period\_unposted\_final\_score’, ‘current\_period\_unposted\_current\_grade’, and ‘current\_period\_unposted\_final\_grade’ (see Enrollment documentation for more information on these fields). In addition, when this argument is passed, the course will have a ‘has\_grading\_periods’ attribute on it. This argument is ignored if the course is configured to hide final grades or if the total\_scores argument is not included.</p><p><br></p></li><li><p><br></p><p>“grading\_periods”: Optional information to include with each Course. When grading\_periods is given, a list of the grading periods associated with each course is returned.</p><p><br></p></li><li><p><br></p><p>“term”: Optional information to include with each Course. When term is given, the information for the enrollment term for each course is returned.</p><p><br></p></li><li><p><br></p><p>“account”: Optional information to include with each Course. When account is given, the account json for each course is returned.</p><p><br></p></li><li><p><br></p><p>“course\_progress”: Optional information to include with each Course. When course\_progress is given, each course will include a ‘course\_progress’ object with the fields: ‘requirement\_count’, an integer specifying the total number of requirements in the course, ‘requirement\_completed\_count’, an integer specifying the total number of requirements in this course that have been completed, and ‘next\_requirement\_url’, a string url to the next requirement item, and ‘completed\_at’, the date the course was completed (null if incomplete). ‘next\_requirement\_url’ will be null if all requirements have been completed or the current module does not require sequential progress. “course\_progress” will return an error message if the course is not module based or the user is not enrolled as a student in the course.</p><p><br></p></li><li><p><br></p><p>“sections”: Section enrollment information to include with each Course. Returns an array of hashes containing the section ID (id), section name (name), start and end dates (start\_at, end\_at), as well as the enrollment type (enrollment\_role, e.g. ‘StudentEnrollment’).</p><p><br></p></li><li><p><br></p><p>“storage\_quota\_used\_mb”: The amount of storage space used by the files in this course</p><p><br></p></li><li><p><br></p><p>“total\_students”: Optional information to include with each Course. Returns an integer for the total amount of active and invited students.</p><p><br></p></li><li><p><br></p><p>“passback\_status”: Include the grade passback\_status</p><p><br></p></li><li><p><br></p><p>“favorites”: Optional information to include with each Course. Indicates if the user has marked the course as a favorite course.</p><p><br></p></li><li><p><br></p><p>“teachers”: Teacher information to include with each Course. Returns an array of hashes containing the <a href="../users#UserDisplay">UserDisplay</a> information for each teacher in the course.</p><p><br></p></li><li><p><br></p><p>“observed\_users”: Optional information to include with each Course. Will include data for observed users if the current user has an observer enrollment.</p><p><br></p></li><li><p><br></p><p>“tabs”: Optional information to include with each Course. Will include the list of tabs configured for each course. See the <a href="../tabs#method.tabs.index">List available tabs API</a> for more information.</p><p><br></p></li><li><p><br></p><p>“course\_image”: Optional information to include with each Course. Returns course image url if a course image has been set.</p><p><br></p></li><li><p><br></p><p>“banner\_image”: Optional information to include with each Course. Returns course banner image url if the course is a Canvas for Elementary subject and a banner image has been set.</p><p><br></p></li><li><p><br></p><p>“concluded”: Optional information to include with each Course. Indicates whether the course has been concluded, taking course and term dates into account.</p><p><br></p></li><li><p><br></p><p>“post\_manually”: Optional information to include with each Course. Returns true if the course post policy is set to “Manually”. Returns false if the the course post policy is set to “Automatically”.</p><p><br></p></li></ul><p>Allowed values: <code>needs\_grading\_count</code>, <code>syllabus\_body</code>, <code>public\_description</code>, <code>total\_scores</code>, <code>current\_grading\_period\_scores</code>, <code>grading\_periods</code>, <code>term</code>, <code>account</code>, <code>course\_progress</code>, <code>sections</code>, <code>storage\_quota\_used\_mb</code>, <code>total\_students</code>, <code>passback\_status</code>, <code>favorites</code>, <code>teachers</code>, <code>observed\_users</code>, <code>course\_image</code>, <code>banner\_image</code>, <code>concluded</code>, <code>post\_manually</code></p> |
| `state[]`          | `string`  | <p>If set, only return courses that are in the given state(s). By default, “available” is returned for students and observers, and anything except “deleted”, for all other enrollment types</p><p>Allowed values: <code>unpublished</code>, <code>available</code>, <code>completed</code>, <code>deleted</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `enrollment_state` | `string`  | <p>When set, only return courses where the user has an enrollment with the given state. This will respect section/course/term date overrides.</p><p>Allowed values: <code>active</code>, <code>invited\_or\_pending</code>, <code>completed</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `homeroom`         | `boolean` | If set, only return homeroom courses.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `account_id`       | `string`  | If set, only include courses associated with this account                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

Returns a list of [Course](#course) objects.

### [Get user progress](#method.courses.user_progress) <a href="#method.courses.user_progress" id="method.courses.user_progress"></a>

[CoursesController#user\_progress](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/users/:user_id/progress`**

**Scope:** `url:GET|/api/v1/courses/:course_id/users/:user_id/progress`

Return progress information for the user and course

You can supply `self` as the user\_id to query your own progress in a course. To query another user’s progress, you must be a teacher in the course, an administrator, or a linked observer of the user.

Returns a [CourseProgress](#courseprogress) object.

### [Create a new course](#method.courses.create) <a href="#method.courses.create" id="method.courses.create"></a>

[CoursesController#create](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`POST /api/v1/accounts/:account_id/courses`**

**Scope:** `url:POST|/api/v1/accounts/:account_id/courses`

Create a new course

**Request Parameters:**

| Parameter                                      | Type       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `course[name]`                                 | `string`   | The name of the course. If omitted, the course will be named “Unnamed Course.”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `course[course_code]`                          | `string`   | The course code for the course.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `course[start_at]`                             | `DateTime` | Course start date in ISO8601 format, e.g. 2011-01-01T01:00Z This value is ignored unless ‘restrict\_enrollments\_to\_course\_dates’ is set to true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `course[end_at]`                               | `DateTime` | Course end date in ISO8601 format. e.g. 2011-01-01T01:00Z This value is ignored unless ‘restrict\_enrollments\_to\_course\_dates’ is set to true.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `course[license]`                              | `string`   | <p>The name of the licensing. Should be one of the following abbreviations (a descriptive name is included in parenthesis for reference):</p><p><br></p><ul><li><p><br></p><p>‘private’ (Private Copyrighted)</p><p><br></p></li><li><p><br></p><p>‘cc\_by\_nc\_nd’ (CC Attribution Non-Commercial No Derivatives)</p><p><br></p></li><li><p><br></p><p>‘cc\_by\_nc\_sa’ (CC Attribution Non-Commercial Share Alike)</p><p><br></p></li><li><p><br></p><p>‘cc\_by\_nc’ (CC Attribution Non-Commercial)</p><p><br></p></li><li><p><br></p><p>‘cc\_by\_nd’ (CC Attribution No Derivatives)</p><p><br></p></li><li><p><br></p><p>‘cc\_by\_sa’ (CC Attribution Share Alike)</p><p><br></p></li><li><p><br></p><p>‘cc\_by’ (CC Attribution)</p><p><br></p></li><li><p><br></p><p>‘public\_domain’ (Public Domain).</p><p><br></p></li></ul> |
| `course[is_public]`                            | `boolean`  | Set to true if course is public to both authenticated and unauthenticated users.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `course[is_public_to_auth_users]`              | `boolean`  | Set to true if course is public only to authenticated users.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `course[public_syllabus]`                      | `boolean`  | Set to true to make the course syllabus public.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `course[public_syllabus_to_auth]`              | `boolean`  | Set to true to make the course syllabus public for authenticated users.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `course[public_description]`                   | `string`   | A publicly visible description of the course.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `course[allow_student_wiki_edits]`             | `boolean`  | If true, students will be able to modify the course wiki.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `course[allow_wiki_comments]`                  | `boolean`  | If true, course members will be able to comment on wiki pages.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `course[allow_student_forum_attachments]`      | `boolean`  | If true, students can attach files to forum posts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `course[open_enrollment]`                      | `boolean`  | Set to true if the course is open enrollment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `course[self_enrollment]`                      | `boolean`  | Set to true if the course is self enrollment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `course[restrict_enrollments_to_course_dates]` | `boolean`  | Set to true to restrict user enrollments to the start and end dates of the course. This value must be set to true in order to specify a course start date and/or end date.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `course[term_id]`                              | `string`   | The unique ID of the term to create to course in.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `course[sis_course_id]`                        | `string`   | The unique SIS identifier.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `course[integration_id]`                       | `string`   | The unique Integration identifier.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `course[hide_final_grades]`                    | `boolean`  | If this option is set to true, the totals in student grades summary will be hidden.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `course[apply_assignment_group_weights]`       | `boolean`  | Set to true to weight final grade based on assignment groups percentages.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `course[time_zone]`                            | `string`   | The time zone for the course. Allowed time zones are [IANA time zones](http://www.iana.org/time-zones) or friendlier [Ruby on Rails time zones](http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `offer`                                        | `boolean`  | If this option is set to true, the course will be available to students immediately.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `enroll_me`                                    | `boolean`  | Set to true to enroll the current user as the teacher.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `skip_course_template`                         | `boolean`  | If this option is set to true, the template of the account will not be applied to this course It means copy\_from\_course\_template will not be executed. This option is thought for a course copy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `course[default_view]`                         | `string`   | <p>The type of page that users will see when they first visit the course</p><p><br></p><ul><li><p><br></p><p>‘feed’ Recent Activity Dashboard</p><p><br></p></li><li><p><br></p><p>‘modules’ Course Modules/Sections Page</p><p><br></p></li><li><p><br></p><p>‘assignments’ Course Assignments List</p><p><br></p></li><li><p><br></p><p>‘syllabus’ Course Syllabus Page</p><p><br></p></li></ul><p><br></p><p>other types may be added in the future</p><p>Allowed values: <code>feed</code>, <code>wiki</code>, <code>modules</code>, <code>syllabus</code>, <code>assignments</code></p>                                                                                                                                                                                                                                           |
| `course[syllabus_body]`                        | `string`   | The syllabus body for the course                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `course[grading_standard_id]`                  | `integer`  | The grading standard id to set for the course. If no value is provided for this argument the current grading\_standard will be un-set from this course.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `course[grade_passback_setting]`               | `string`   | Optional. The grade\_passback\_setting for the course. Only ‘nightly\_sync’, ‘disabled’, and ” are allowed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `course[course_format]`                        | `string`   | Optional. Specifies the format of the course. (Should be ‘on\_campus’, ‘online’, or ‘blended’)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `course[post_manually]`                        | `boolean`  | Default is false. When true, all grades in the course must be posted manually, and will not be automatically posted. When false, all grades in the course will be automatically posted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `enable_sis_reactivation`                      | `boolean`  | When true, will first try to re-activate a deleted course with matching sis\_course\_id if possible.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

Returns a [Course](#course) object.

### [Upload a file](#method.courses.create_file) <a href="#method.courses.create_file" id="method.courses.create_file"></a>

[CoursesController#create\_file](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`POST /api/v1/courses/:course_id/files`**

**Scope:** `url:POST|/api/v1/courses/:course_id/files`

Upload a file to the course.

This API endpoint is the first step in uploading a file to a course. See the [File Upload Documentation](https://developerdocs.instructure.com/services/canvas/basics/file.file_uploads) for details on the file upload workflow.

Only those with the “Manage Files” permission on a course can upload files to the course. By default, this is Teachers, TAs and Designers.

### [List students](#method.courses.students) <a href="#method.courses.students" id="method.courses.students"></a>

[CoursesController#students](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/students`**

**Scope:** `url:GET|/api/v1/courses/:course_id/students`

Returns the paginated list of students enrolled in this course.

DEPRECATED: Please use the [course users](#method.courses.users) endpoint and pass “student” as the enrollment\_type.

Returns a list of [User](https://developerdocs.instructure.com/services/canvas/users#user) objects.

### [List users in course](#method.courses.users) <a href="#method.courses.users" id="method.courses.users"></a>

[CoursesController#users](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/users`**

**Scope:** `url:GET|/api/v1/courses/:course_id/users`

**`GET /api/v1/courses/:course_id/search_users`**

**Scope:** `url:GET|/api/v1/courses/:course_id/search_users`

Returns the paginated list of users in this course. And optionally the user’s enrollments in the course.

**Request Parameters:**

| Parameter            | Type      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| -------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `search_term`        | `string`  | The partial name or full ID of the users to match and return in the results list.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `sort`               | `string`  | <p>When set, sort the results of the search based on the given field.</p><p>Allowed values: <code>username</code>, <code>last\_login</code>, <code>email</code>, <code>sis\_id</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `enrollment_type[]`  | `string`  | <p>When set, only return users where the user is enrolled as this type. “student\_view” implies include\[]=test\_student. This argument is ignored if enrollment\_role is given.</p><p>Allowed values: <code>teacher</code>, <code>student</code>, <code>student\_view</code>, <code>ta</code>, <code>observer</code>, <code>designer</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `enrollment_role`    | `string`  | Deprecated When set, only return users enrolled with the specified course-level role. This can be a role created with the [Add Role API](https://developerdocs.instructure.com/services/canvas/roles#method.role_overrides.add_role) or a base role type of ‘StudentEnrollment’, ‘TeacherEnrollment’, ‘TaEnrollment’, ‘ObserverEnrollment’, or ‘DesignerEnrollment’.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `enrollment_role_id` | `integer` | When set, only return courses where the user is enrolled with the specified course-level role. This can be a role created with the [Add Role API](https://developerdocs.instructure.com/services/canvas/roles#method.role_overrides.add_role) or a built\_in role id with type ‘StudentEnrollment’, ‘TeacherEnrollment’, ‘TaEnrollment’, ‘ObserverEnrollment’, or ‘DesignerEnrollment’.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `section_ids[]`      | `integer` | When set, only return users who are enrolled in the given section(s).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `include[]`          | `string`  | <ul><li><p><br></p><p>“enrollments”:</p><p><br></p></li></ul><p><br></p><p>Optionally include with each Course the user’s current and invited enrollments. If the user is enrolled as a student, and the account has permission to manage or view all grades, each enrollment will include a ‘grades’ key with ‘current\_score’, ‘final\_score’, ‘current\_grade’ and ‘final\_grade’ values.</p><p><br></p><ul><li><p><br></p><p>“locked”: Optionally include whether an enrollment is locked.</p><p><br></p></li><li><p><br></p><p>“avatar\_url”: Optionally include avatar\_url.</p><p><br></p></li><li><p><br></p><p>“bio”: Optionally include each user’s bio.</p><p><br></p></li><li><p><br></p><p>“test\_student”: Optionally include the course’s Test Student,</p><p><br></p></li></ul><p><br></p><p>if present. Default is to not include Test Student.</p><p><br></p><ul><li><p><br></p><p>“custom\_links”: Optionally include plugin-supplied custom links for each student,</p><p><br></p></li></ul><p><br></p><p>such as analytics information</p><p><br></p><ul><li><p><br></p><p>“current\_grading\_period\_scores”: if enrollments is included as</p><p><br></p></li></ul><p><br></p><p>well as this directive, the scores returned in the enrollment will be for the current grading period if there is one. A ‘grading\_period\_id’ value will also be included with the scores. if grading\_period\_id is nil there is no current grading period and the score is a total score.</p><p><br></p><ul><li><p><br></p><p>“uuid”: Optionally include the users uuid</p><p><br></p></li></ul><p>Allowed values: <code>enrollments</code>, <code>locked</code>, <code>avatar\_url</code>, <code>test\_student</code>, <code>bio</code>, <code>custom\_links</code>, <code>current\_grading\_period\_scores</code>, <code>uuid</code></p> |
| `user_id`            | `string`  | If this parameter is given and it corresponds to a user in the course, the `page` parameter will be ignored and the page containing the specified user will be returned instead.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `user_ids[]`         | `integer` | If included, the course users set will only include users with IDs specified by the param. Note: this will not work in conjunction with the “user\_id” argument but multiple user\_ids can be included.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `enrollment_state[]` | `string`  | <p>When set, only return users where the enrollment workflow state is of one of the given types. “active” and “invited” enrollments are returned by default.</p><p>Allowed values: <code>active</code>, <code>invited</code>, <code>rejected</code>, <code>completed</code>, <code>inactive</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

Returns a list of [User](https://developerdocs.instructure.com/services/canvas/users#user) objects.

### [List recently logged in students](#method.courses.recent_students) <a href="#method.courses.recent_students" id="method.courses.recent_students"></a>

[CoursesController#recent\_students](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/recent_students`**

**Scope:** `url:GET|/api/v1/courses/:course_id/recent_students`

Returns the paginated list of users in this course, ordered by how recently they have logged in. The records include the ‘last\_login’ field which contains a timestamp of the last time that user logged into canvas. The querying user must have the ‘View usage reports’ permission.

**Example Request:**

```bash
curl -H 'Authorization: Bearer <token>' \
     https://<canvas>/api/v1/courses/<course_id>/recent_users
```

Returns a list of [User](https://developerdocs.instructure.com/services/canvas/users#user) objects.

### [Get single user](#method.courses.user) <a href="#method.courses.user" id="method.courses.user"></a>

[CoursesController#user](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/users/:id`**

**Scope:** `url:GET|/api/v1/courses/:course_id/users/:id`

Return information on a single user.

Accepts the same include\[] parameters as the :users: action, and returns a single user with the same fields as that action.

Returns an [User](https://developerdocs.instructure.com/services/canvas/users#user) object.

### [Search for content share users](#method.courses.content_share_users) <a href="#method.courses.content_share_users" id="method.courses.content_share_users"></a>

[CoursesController#content\_share\_users](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/content_share_users`**

**Scope:** `url:GET|/api/v1/courses/:course_id/content_share_users`

Returns a paginated list of users you can share content with. Requires the content share feature and the user must have the manage content permission for the course.

**Request Parameters:**

| Parameter     | Type              | Description                                                                                    |
| ------------- | ----------------- | ---------------------------------------------------------------------------------------------- |
| `search_term` | Required `string` | Term used to find users. Will search available share users with the search term in their name. |

**Example Request:**

```bash
curl -H 'Authorization: Bearer <token>' \
     https://<canvas>/api/v1/courses/<course_id>/content_share_users \
     -d 'search_term=smith'
```

Returns a list of [User](https://developerdocs.instructure.com/services/canvas/users#user) objects.

### [Preview processed html](#method.courses.preview_html) <a href="#method.courses.preview_html" id="method.courses.preview_html"></a>

[CoursesController#preview\_html](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`POST /api/v1/courses/:course_id/preview_html`**

**Scope:** `url:POST|/api/v1/courses/:course_id/preview_html`

Preview html content processed for this course

**Request Parameters:**

| Parameter | Type     | Description                 |
| --------- | -------- | --------------------------- |
| `html`    | `string` | The html content to process |

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id>/preview_html \
     -F 'html=<p><badhtml></badhtml>processed html</p>' \
     -H 'Authorization: Bearer <token>'
```

**Example Response:**

```js
{
  "html": "<p>processed html</p>"
}
```

### [Course activity stream](#method.courses.activity_stream) <a href="#method.courses.activity_stream" id="method.courses.activity_stream"></a>

[CoursesController#activity\_stream](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/activity_stream`**

**Scope:** `url:GET|/api/v1/courses/:course_id/activity_stream`

Returns the current user’s course-specific activity stream, paginated.

For full documentation, see the API documentation for the user activity stream, in the user api.

### [Course activity stream summary](#method.courses.activity_stream_summary) <a href="#method.courses.activity_stream_summary" id="method.courses.activity_stream_summary"></a>

[CoursesController#activity\_stream\_summary](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/activity_stream/summary`**

**Scope:** `url:GET|/api/v1/courses/:course_id/activity_stream/summary`

Returns a summary of the current user’s course-specific activity stream.

For full documentation, see the API documentation for the user activity stream summary, in the user api.

### [Course TODO items](#method.courses.todo_items) <a href="#method.courses.todo_items" id="method.courses.todo_items"></a>

[CoursesController#todo\_items](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/todo`**

**Scope:** `url:GET|/api/v1/courses/:course_id/todo`

Returns the current user’s course-specific todo items.

For full documentation, see the API documentation for the user todo items, in the user api.

### [Delete/Conclude a course](#method.courses.destroy) <a href="#method.courses.destroy" id="method.courses.destroy"></a>

[CoursesController#destroy](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`DELETE /api/v1/courses/:id`**

**Scope:** `url:DELETE|/api/v1/courses/:id`

Delete or conclude an existing course

**Request Parameters:**

| Parameter | Type              | Description                                                                                               |
| --------- | ----------------- | --------------------------------------------------------------------------------------------------------- |
| `event`   | Required `string` | <p>The action to take on the course.</p><p>Allowed values: <code>delete</code>, <code>conclude</code></p> |

**Example Response:**

```js
{ "delete": "true" }
```

### [Get course settings](#method.courses.api_settings) <a href="#method.courses.api_settings" id="method.courses.api_settings"></a>

[CoursesController#api\_settings](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/settings`**

**Scope:** `url:GET|/api/v1/courses/:course_id/settings`

Returns some of a course’s settings.

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id>/settings \
  -X GET \
  -H 'Authorization: Bearer <token>'
```

**Example Response:**

```js
{
  "allow_student_discussion_topics": true,
  "allow_student_forum_attachments": false,
  "allow_student_discussion_editing": true,
  "grading_standard_enabled": true,
  "grading_standard_id": 137,
  "allow_student_organized_groups": true,
  "hide_final_grades": false,
  "hide_distribution_graphs": false,
  "hide_sections_on_course_users_page": false,
  "lock_all_announcements": true,
  "usage_rights_required": false,
  "homeroom_course": false,
  "default_due_time": "23:59:59",
  "conditional_release": false
}
```

### [Update course settings](#method.courses.update_settings) <a href="#method.courses.update_settings" id="method.courses.update_settings"></a>

[CoursesController#update\_settings](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`PUT /api/v1/courses/:course_id/settings`**

**Scope:** `url:PUT|/api/v1/courses/:course_id/settings`

Can update the following course settings:

**Request Parameters:**

| Parameter                                   | Type      | Description                                                                                                                                                                                                                                                                                                                                  |
| ------------------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `allow_final_grade_override`                | `boolean` | Let student final grades for a grading period or the total grades for the course be overridden                                                                                                                                                                                                                                               |
| `allow_student_discussion_topics`           | `boolean` | Let students create discussion topics                                                                                                                                                                                                                                                                                                        |
| `allow_student_forum_attachments`           | `boolean` | Let students attach files to discussions                                                                                                                                                                                                                                                                                                     |
| `allow_student_discussion_editing`          | `boolean` | Let students edit or delete their own discussion replies                                                                                                                                                                                                                                                                                     |
| `allow_student_organized_groups`            | `boolean` | Let students organize their own groups                                                                                                                                                                                                                                                                                                       |
| `allow_student_discussion_reporting`        | `boolean` | Let students report offensive discussion content                                                                                                                                                                                                                                                                                             |
| `allow_student_anonymous_discussion_topics` | `boolean` | Let students create anonymous discussion topics                                                                                                                                                                                                                                                                                              |
| `filter_speed_grader_by_student_group`      | `boolean` | Filter SpeedGrader to only the selected student group                                                                                                                                                                                                                                                                                        |
| `hide_final_grades`                         | `boolean` | Hide totals in student grades summary                                                                                                                                                                                                                                                                                                        |
| `hide_distribution_graphs`                  | `boolean` | Hide grade distribution graphs from students                                                                                                                                                                                                                                                                                                 |
| `hide_sections_on_course_users_page`        | `boolean` | Disallow students from viewing students in sections they do not belong to                                                                                                                                                                                                                                                                    |
| `lock_all_announcements`                    | `boolean` | Disable comments on announcements                                                                                                                                                                                                                                                                                                            |
| `usage_rights_required`                     | `boolean` | Copyright and license information must be provided for files before they are published.                                                                                                                                                                                                                                                      |
| `restrict_student_past_view`                | `boolean` | Restrict students from viewing courses after end date                                                                                                                                                                                                                                                                                        |
| `restrict_student_future_view`              | `boolean` | Restrict students from viewing courses before start date                                                                                                                                                                                                                                                                                     |
| `show_announcements_on_home_page`           | `boolean` | Show the most recent announcements on the Course home page (if a Wiki, defaults to five announcements, configurable via home\_page\_announcement\_limit). Canvas for Elementary subjects ignore this setting.                                                                                                                                |
| `home_page_announcement_limit`              | `integer` | Limit the number of announcements on the home page if enabled via show\_announcements\_on\_home\_page                                                                                                                                                                                                                                        |
| `syllabus_course_summary`                   | `boolean` | Show the course summary (list of assignments and calendar events) on the syllabus page. Default is true.                                                                                                                                                                                                                                     |
| `default_due_time`                          | `string`  | Set the default due time for assignments. This is the time that will be pre-selected in the Canvas user interface when setting a due date for an assignment. It does not change when any existing assignment is due. It should be given in 24-hour HH:MM:SS format. The default is “23:59:59”. Use “inherit” to inherit the account setting. |
| `conditional_release`                       | `boolean` | Enable or disable individual learning paths for students based on assessment                                                                                                                                                                                                                                                                 |

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id>/settings \
  -X PUT \
  -H 'Authorization: Bearer <token>' \
  -d 'allow_student_discussion_topics=false'
```

### [Return test student for course](#method.courses.student_view_student) <a href="#method.courses.student_view_student" id="method.courses.student_view_student"></a>

[CoursesController#student\_view\_student](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/student_view_student`**

**Scope:** `url:GET|/api/v1/courses/:course_id/student_view_student`

Returns information for a test student in this course. Creates a test student if one does not already exist for the course. The caller must have permission to access the course’s student view.

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id>/student_view_student \
  -X GET \
  -H 'Authorization: Bearer <token>'
```

Returns an [User](https://developerdocs.instructure.com/services/canvas/users#user) object.

### [Get a single course](#method.courses.show) <a href="#method.courses.show" id="method.courses.show"></a>

[CoursesController#show](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:id`**

**Scope:** `url:GET|/api/v1/courses/:id`

**`GET /api/v1/accounts/:account_id/courses/:id`**

**Scope:** `url:GET|/api/v1/accounts/:account_id/courses/:id`

Return information on a single course.

Accepts the same include\[] parameters as the list action plus:

**Request Parameters:**

| Parameter       | Type      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| --------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `include[]`     | `string`  | <ul><li><p><br></p><p>“all\_courses”: Also search recently deleted courses.</p><p><br></p></li><li><p><br></p><p>“permissions”: Include permissions the current user has for the course.</p><p><br></p></li><li><p><br></p><p>“observed\_users”: Include observed users in the enrollments</p><p><br></p></li><li><p><br></p><p>“course\_image”: Include course image url if a course image has been set</p><p><br></p></li><li><p><br></p><p>“banner\_image”: Include course banner image url if the course is a Canvas for Elementary subject and a banner image has been set</p><p><br></p></li><li><p><br></p><p>“concluded”: Optional information to include with Course. Indicates whether the course has been concluded, taking course and term dates into account.</p><p><br></p></li><li><p><br></p><p>“lti\_context\_id”: Include course LTI tool id.</p><p><br></p></li><li><p><br></p><p>“post\_manually”: Include course post policy. If the post policy is manually post grades, the value will be true. If the post policy is automatically post grades, the value will be false.</p><p><br></p></li></ul><p>Allowed values: <code>needs\_grading\_count</code>, <code>syllabus\_body</code>, <code>public\_description</code>, <code>total\_scores</code>, <code>current\_grading\_period\_scores</code>, <code>term</code>, <code>account</code>, <code>course\_progress</code>, <code>sections</code>, <code>storage\_quota\_used\_mb</code>, <code>total\_students</code>, <code>passback\_status</code>, <code>favorites</code>, <code>teachers</code>, <code>observed\_users</code>, <code>all\_courses</code>, <code>permissions</code>, <code>course\_image</code>, <code>banner\_image</code>, <code>concluded</code>, <code>lti\_context\_id</code>, <code>post\_manually</code></p> |
| `teacher_limit` | `integer` | The maximum number of teacher enrollments to show. If the course contains more teachers than this, instead of giving the teacher enrollments, the count of teachers will be given under a *teacher\_count* key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

Returns a [Course](#course) object.

### [Update a course](#method.courses.update) <a href="#method.courses.update" id="method.courses.update"></a>

[CoursesController#update](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`PUT /api/v1/courses/:id`**

**Scope:** `url:PUT|/api/v1/courses/:id`

Update an existing course.

Arguments are the same as Courses#create, with a few exceptions (enroll\_me).

If a user has content management rights, but not full course editing rights, the only attribute editable through this endpoint will be “syllabus\_body”

If an account has set prevent\_course\_availability\_editing\_by\_teachers, a teacher cannot change `course[start_at]`, `course[conclude_at]`, or `course[restrict_enrollments_to_course_dates]` here.

**Request Parameters:**

<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>course[account_id]</code></td><td><code>integer</code></td><td>The unique ID of the account to move the course to.</td></tr><tr><td><code>course[name]</code></td><td><code>string</code></td><td>The name of the course. If omitted, the course will be named “Unnamed Course.”</td></tr><tr><td><code>course[course_code]</code></td><td><code>string</code></td><td>The course code for the course.</td></tr><tr><td><code>course[start_at]</code></td><td><code>DateTime</code></td><td>Course start date in ISO8601 format, e.g. 2011-01-01T01:00Z This value is ignored unless ‘restrict_enrollments_to_course_dates’ is set to true, or the course is already published.</td></tr><tr><td><code>course[end_at]</code></td><td><code>DateTime</code></td><td>Course end date in ISO8601 format. e.g. 2011-01-01T01:00Z This value is ignored unless ‘restrict_enrollments_to_course_dates’ is set to true.</td></tr><tr><td><code>course[license]</code></td><td><code>string</code></td><td><p>The name of the licensing. Should be one of the following abbreviations (a descriptive name is included in parenthesis for reference):</p><p><br></p><ul><li><p><br></p><p>‘private’ (Private Copyrighted)</p><p><br></p></li><li><p><br></p><p>‘cc_by_nc_nd’ (CC Attribution Non-Commercial No Derivatives)</p><p><br></p></li><li><p><br></p><p>‘cc_by_nc_sa’ (CC Attribution Non-Commercial Share Alike)</p><p><br></p></li><li><p><br></p><p>‘cc_by_nc’ (CC Attribution Non-Commercial)</p><p><br></p></li><li><p><br></p><p>‘cc_by_nd’ (CC Attribution No Derivatives)</p><p><br></p></li><li><p><br></p><p>‘cc_by_sa’ (CC Attribution Share Alike)</p><p><br></p></li><li><p><br></p><p>‘cc_by’ (CC Attribution)</p><p><br></p></li><li><p><br></p><p>‘public_domain’ (Public Domain).</p><p><br></p></li></ul></td></tr><tr><td><code>course[is_public]</code></td><td><code>boolean</code></td><td>Set to true if course is public to both authenticated and unauthenticated users.</td></tr><tr><td><code>course[is_public_to_auth_users]</code></td><td><code>boolean</code></td><td>Set to true if course is public only to authenticated users.</td></tr><tr><td><code>course[public_syllabus]</code></td><td><code>boolean</code></td><td>Set to true to make the course syllabus public.</td></tr><tr><td><code>course[public_syllabus_to_auth]</code></td><td><code>boolean</code></td><td>Set to true to make the course syllabus to public for authenticated users.</td></tr><tr><td><code>course[public_description]</code></td><td><code>string</code></td><td>A publicly visible description of the course.</td></tr><tr><td><code>course[allow_student_wiki_edits]</code></td><td><code>boolean</code></td><td>If true, students will be able to modify the course wiki.</td></tr><tr><td><code>course[allow_wiki_comments]</code></td><td><code>boolean</code></td><td>If true, course members will be able to comment on wiki pages.</td></tr><tr><td><code>course[allow_student_forum_attachments]</code></td><td><code>boolean</code></td><td>If true, students can attach files to forum posts.</td></tr><tr><td><code>course[open_enrollment]</code></td><td><code>boolean</code></td><td>Set to true if the course is open enrollment.</td></tr><tr><td><code>course[self_enrollment]</code></td><td><code>boolean</code></td><td>Set to true if the course is self enrollment.</td></tr><tr><td><code>course[restrict_enrollments_to_course_dates]</code></td><td><code>boolean</code></td><td>Set to true to restrict user enrollments to the start and end dates of the course. Setting this value to false will remove the course end date (if it exists), as well as the course start date (if the course is unpublished).</td></tr><tr><td><code>course[term_id]</code></td><td><code>integer</code></td><td>The unique ID of the term to create to course in.</td></tr><tr><td><code>course[sis_course_id]</code></td><td><code>string</code></td><td>The unique SIS identifier.</td></tr><tr><td><code>course[integration_id]</code></td><td><code>string</code></td><td>The unique Integration identifier.</td></tr><tr><td><code>course[hide_final_grades]</code></td><td><code>boolean</code></td><td>If this option is set to true, the totals in student grades summary will be hidden.</td></tr><tr><td><code>course[time_zone]</code></td><td><code>string</code></td><td>The time zone for the course. Allowed time zones are <a href="http://www.iana.org/time-zones">IANA time zones</a> or friendlier <a href="http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html">Ruby on Rails time zones</a>.</td></tr><tr><td><code>course[apply_assignment_group_weights]</code></td><td><code>boolean</code></td><td>Set to true to weight final grade based on assignment groups percentages.</td></tr><tr><td><code>course[storage_quota_mb]</code></td><td><code>integer</code></td><td>Set the storage quota for the course, in megabytes. The caller must have the “Manage storage quotas” account permission.</td></tr><tr><td><code>offer</code></td><td><code>boolean</code></td><td>If this option is set to true, the course will be available to students immediately.</td></tr><tr><td><code>course[event]</code></td><td><code>string</code></td><td><p>The action to take on each course.</p><p><br></p><ul><li><p><br></p><p>‘claim’ makes a course no longer visible to students. This action is also called “unpublish” on the web site. A course cannot be unpublished if students have received graded submissions.</p><p><br></p></li><li><p><br></p><p>‘offer’ makes a course visible to students. This action is also called “publish” on the web site.</p><p><br></p></li><li><p><br></p><p>‘conclude’ prevents future enrollments and makes a course read-only for all participants. The course still appears in prior-enrollment lists.</p><p><br></p></li><li><p><br></p><p>‘delete’ completely removes the course from the web site (including course menus and prior-enrollment lists). All enrollments are deleted. Course content may be physically deleted at a future date.</p><p><br></p></li><li><p><br></p><p>‘undelete’ attempts to recover a course that has been deleted. This action requires account administrative rights. (Recovery is not guaranteed; please conclude rather than delete a course if there is any possibility the course will be used again.) The recovered course will be unpublished. Deleted enrollments will not be recovered.</p><p><br></p></li></ul><p>Allowed values: <code>claim</code>, <code>offer</code>, <code>conclude</code>, <code>delete</code>, <code>undelete</code></p></td></tr><tr><td><code>course[default_view]</code></td><td><code>string</code></td><td><p>The type of page that users will see when they first visit the course</p><p><br></p><ul><li><p><br></p><p>‘feed’ Recent Activity Dashboard</p><p><br></p></li><li><p><br></p><p>‘wiki’ Wiki Front Page</p><p><br></p></li><li><p><br></p><p>‘modules’ Course Modules/Sections Page</p><p><br></p></li><li><p><br></p><p>‘assignments’ Course Assignments List</p><p><br></p></li><li><p><br></p><p>‘syllabus’ Course Syllabus Page</p><p><br></p></li></ul><p><br></p><p>other types may be added in the future</p><p>Allowed values: <code>feed</code>, <code>wiki</code>, <code>modules</code>, <code>syllabus</code>, <code>assignments</code></p></td></tr><tr><td><code>course[syllabus_body]</code></td><td><code>string</code></td><td>The syllabus body for the course</td></tr><tr><td><code>course[syllabus_course_summary]</code></td><td><code>boolean</code></td><td>Optional. Indicates whether the Course Summary (consisting of the course’s assignments and calendar events) is displayed on the syllabus page. Defaults to <code>true</code>.</td></tr><tr><td><code>course[grading_standard_id]</code></td><td><code>integer</code></td><td>The grading standard id to set for the course. If no value is provided for this argument the current grading_standard will be un-set from this course.</td></tr><tr><td><code>course[grade_passback_setting]</code></td><td><code>string</code></td><td>Optional. The grade_passback_setting for the course. Only ‘nightly_sync’ and ” are allowed</td></tr><tr><td><code>course[course_format]</code></td><td><code>string</code></td><td>Optional. Specifies the format of the course. (Should be either ‘on_campus’ or ‘online’)</td></tr><tr><td><code>course[image_id]</code></td><td><code>integer</code></td><td>This is a file ID corresponding to an image file in the course that will be used as the course image. This will clear the course’s image_url setting if set. If you attempt to provide image_url and image_id in a request it will fail.</td></tr><tr><td><code>course[image_url]</code></td><td><code>string</code></td><td>This is a URL to an image to be used as the course image. This will clear the course’s image_id setting if set. If you attempt to provide image_url and image_id in a request it will fail.</td></tr><tr><td><code>course[remove_image]</code></td><td><code>boolean</code></td><td>If this option is set to true, the course image url and course image ID are both set to nil</td></tr><tr><td><code>course[remove_banner_image]</code></td><td><code>boolean</code></td><td>If this option is set to true, the course banner image url and course banner image ID are both set to nil</td></tr><tr><td><code>course[blueprint]</code></td><td><code>boolean</code></td><td>Sets the course as a blueprint course.</td></tr><tr><td><code>course[blueprint_restrictions]</code></td><td><code>BlueprintRestriction</code></td><td>Sets a default set to apply to blueprint course objects when restricted, unless <em>use_blueprint_restrictions_by_object_type</em> is enabled. See the <a href="../blueprint_courses#BlueprintRestriction">Blueprint Restriction</a> documentation</td></tr><tr><td><code>course[use_blueprint_restrictions_by_object_type]</code></td><td><code>boolean</code></td><td>When enabled, the <em>blueprint_restrictions</em> parameter will be ignored in favor of the <em>blueprint_restrictions_by_object_type</em> parameter</td></tr><tr><td><code>course[blueprint_restrictions_by_object_type]</code></td><td><code>multiple BlueprintRestrictions</code></td><td><p>Allows setting multiple <a href="../blueprint_courses#BlueprintRestriction">Blueprint Restriction</a> to apply to blueprint course objects of the matching type when restricted. The possible object types are “assignment”, “attachment”, “discussion_topic”, “quiz” and “wiki_page”. Example usage:</p><p><br></p><pre><code>course[blueprint_restrictions_by_object_type][assignment][content]=1
</code></pre></td></tr><tr><td><code>course[homeroom_course]</code></td><td><code>boolean</code></td><td>Sets the course as a homeroom course. The setting takes effect only when the course is associated with a Canvas for Elementary-enabled account.</td></tr><tr><td><code>course[sync_enrollments_from_homeroom]</code></td><td><code>string</code></td><td>Syncs enrollments from the homeroom that is set in homeroom_course_id. The setting only takes effect when the course is associated with a Canvas for Elementary-enabled account and sync_enrollments_from_homeroom is enabled.</td></tr><tr><td><code>course[homeroom_course_id]</code></td><td><code>string</code></td><td>Sets the Homeroom Course id to be used with sync_enrollments_from_homeroom. The setting only takes effect when the course is associated with a Canvas for Elementary-enabled account and sync_enrollments_from_homeroom is enabled.</td></tr><tr><td><code>course[template]</code></td><td><code>boolean</code></td><td>Enable or disable the course as a template that can be selected by an account</td></tr><tr><td><code>course[course_color]</code></td><td><code>string</code></td><td>Sets a color in hex code format to be associated with the course. The setting takes effect only when the course is associated with a Canvas for Elementary-enabled account.</td></tr><tr><td><code>course[friendly_name]</code></td><td><code>string</code></td><td>Set a friendly name for the course. If this is provided and the course is associated with a Canvas for Elementary account, it will be shown instead of the course name. This setting takes priority over course nicknames defined by individual users.</td></tr><tr><td><code>course[enable_course_paces]</code></td><td><code>boolean</code></td><td>Enable or disable Course Pacing for the course. This setting only has an effect when the Course Pacing feature flag is enabled for the sub-account. Otherwise, Course Pacing are always disabled.</td></tr><tr><td><code>course[conditional_release]</code></td><td><code>boolean</code></td><td>Enable or disable individual learning paths for students based on assessment</td></tr><tr><td><code>course[post_manually]</code></td><td><code>boolean</code></td><td>When true, all grades in the course will be posted manually. When false, all grades in the course will be automatically posted. Use with caution as this setting will override any assignment level post policy.</td></tr><tr><td><code>override_sis_stickiness</code></td><td><code>boolean</code></td><td>Default is true. If false, any fields containing “sticky” changes will not be updated. See SIS CSV Format documentation for information on which fields can have SIS stickiness</td></tr></tbody></table>

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id> \
  -X PUT \
  -H 'Authorization: Bearer <token>' \
  -d 'course[name]=New course name' \
  -d 'course[start_at]=2012-05-05T00:00:00Z'
```

**Example Response:**

```js
{
  "name": "New course name",
  "course_code": "COURSE-001",
  "start_at": "2012-05-05T00:00:00Z",
  "end_at": "2012-08-05T23:59:59Z",
  "sis_course_id": "12345"
}
```

### [Update courses](#method.courses.batch_update) <a href="#method.courses.batch_update" id="method.courses.batch_update"></a>

[CoursesController#batch\_update](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`PUT /api/v1/accounts/:account_id/courses`**

**Scope:** `url:PUT|/api/v1/accounts/:account_id/courses`

Update multiple courses in an account. Operates asynchronously; use the [progress endpoint](https://developerdocs.instructure.com/services/canvas/progress#method.progress.show) to query the status of an operation.

**Request Parameters:**

| Parameter      | Type              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| -------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `course_ids[]` | Required `string` | List of ids of courses to update. At most 500 courses may be updated in one call.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `event`        | Required `string` | <p>The action to take on each course. Must be one of ‘offer’, ‘conclude’, ‘delete’, or ‘undelete’.</p><p><br></p><ul><li><p><br></p><p>‘offer’ makes a course visible to students. This action is also called “publish” on the web site.</p><p><br></p></li><li><p><br></p><p>‘conclude’ prevents future enrollments and makes a course read-only for all participants. The course still appears in prior-enrollment lists.</p><p><br></p></li><li><p><br></p><p>‘delete’ completely removes the course from the web site (including course menus and prior-enrollment lists). All enrollments are deleted. Course content may be physically deleted at a future date.</p><p><br></p></li><li><p><br></p><p>‘undelete’ attempts to recover a course that has been deleted. (Recovery is not guaranteed; please conclude rather than delete a course if there is any possibility the course will be used again.) The recovered course will be unpublished. Deleted enrollments will not be recovered.</p><p><br></p></li></ul><p>Allowed values: <code>offer</code>, <code>conclude</code>, <code>delete</code>, <code>undelete</code></p> |

**Example Request:**

```bash
curl https://<canvas>/api/v1/accounts/<account_id>/courses \
  -X PUT \
  -H 'Authorization: Bearer <token>' \
  -d 'event=offer' \
  -d 'course_ids[]=1' \
  -d 'course_ids[]=2'
```

Returns a [Progress](https://developerdocs.instructure.com/services/canvas/progress#progress) object.

### [Reset a course](#method.courses.reset_content) <a href="#method.courses.reset_content" id="method.courses.reset_content"></a>

[CoursesController#reset\_content](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`POST /api/v1/courses/:course_id/reset_content`**

**Scope:** `url:POST|/api/v1/courses/:course_id/reset_content`

Deletes the current course, and creates a new equivalent course with no content, but all sections and users moved over.

Returns a [Course](#course) object.

### [Get effective due dates](#method.courses.effective_due_dates) <a href="#method.courses.effective_due_dates" id="method.courses.effective_due_dates"></a>

[CoursesController#effective\_due\_dates](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/effective_due_dates`**

**Scope:** `url:GET|/api/v1/courses/:course_id/effective_due_dates`

For each assignment in the course, returns each assigned student’s ID and their corresponding due date along with some grading period data. Returns a collection with keys representing assignment IDs and values as a collection containing keys representing student IDs and values representing the student’s effective due\_at, the grading\_period\_id of which the due\_at falls in, and whether or not the grading period is closed (in\_closed\_grading\_period)

The list of assignment IDs for which effective student due dates are requested. If not provided, all assignments in the course will be used.

**Request Parameters:**

| Parameter          | Type     | Description    |
| ------------------ | -------- | -------------- |
| `assignment_ids[]` | `string` | no description |

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id>/effective_due_dates
  -X GET \
  -H 'Authorization: Bearer <token>'
```

**Example Response:**

```js
{
  "1": {
     "14": { "due_at": "2015-09-05", "grading_period_id": null, "in_closed_grading_period": false },
     "15": { due_at: null, "grading_period_id": 3, "in_closed_grading_period": true }
  },
  "2": {
     "14": { "due_at": "2015-08-05", "grading_period_id": 3, "in_closed_grading_period": true }
  }
}
```

### [Permissions](#method.courses.permissions) <a href="#method.courses.permissions" id="method.courses.permissions"></a>

[CoursesController#permissions](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/permissions`**

**Scope:** `url:GET|/api/v1/courses/:course_id/permissions`

Returns permission information for the calling user in the given course. See also the [Account](https://developerdocs.instructure.com/services/canvas/accounts#method.accounts.permissions) and [Group](https://developerdocs.instructure.com/services/canvas/groups#method.groups.permissions) counterparts.

**Request Parameters:**

| Parameter       | Type     | Description                                                                                                                                                                                                                                           |
| --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `permissions[]` | `string` | List of permissions to check against the authenticated user. Permission names are documented in the [List assignable permissions](https://developerdocs.instructure.com/services/canvas/roles#method.role_overrides.manageable_permissions) endpoint. |

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id>/permissions \
  -H 'Authorization: Bearer <token>' \
  -d 'permissions[]=manage_grades'
  -d 'permissions[]=send_messages'
```

**Example Response:**

```js
{'manage_grades': 'false', 'send_messages': 'true'}
```

### [Get bulk user progress](#method.courses.bulk_user_progress) <a href="#method.courses.bulk_user_progress" id="method.courses.bulk_user_progress"></a>

[CoursesController#bulk\_user\_progress](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`GET /api/v1/courses/:course_id/bulk_user_progress`**

**Scope:** `url:GET|/api/v1/courses/:course_id/bulk_user_progress`

Returns progress information for all users enrolled in the given course.

You must be a user who has permission to view all grades in the course (such as a teacher or administrator).

**Example Request:**

```bash
curl https://<canvas>/api/v1/courses/<course_id>/bulk_user_progress \
  -H 'Authorization: Bearer <token>'
```

**Example Response:**

```js
[
  {
    "id": 1,
    "display_name": "Test Student 1",
    "avatar_image_url": "https://<canvas>/images/messages/avatar-50.png",
    "html_url": "https://<canvas>/courses/1/users/1",
    "pronouns": null,
    "progress": {
      "requirement_count": 2,
      "requirement_completed_count": 1,
      "next_requirement_url": "https://<canvas>/courses/<course_id>/modules/items/<item_id>",
      "completed_at": null
    }
  },
  {
    "id": 2,
    "display_name": "Test Student 2",
    "avatar_image_url": "https://<canvas>/images/messages/avatar-50.png",
    "html_url": "https://<canvas>/courses/1/users/2",
    "pronouns": null,
    "progress": {
      "requirement_count": 2,
      "requirement_completed_count": 2,
      "next_requirement_url": null,
      "completed_at": "2021-08-10T16:26:08Z"
    }
  }
]
```

### [Remove quiz migration alert](#method.courses.dismiss_migration_limitation_msg) <a href="#method.courses.dismiss_migration_limitation_msg" id="method.courses.dismiss_migration_limitation_msg"></a>

[CoursesController#dismiss\_migration\_limitation\_msg](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`POST /api/v1/courses/:id/dismiss_migration_limitation_message`**

**Scope:** `url:POST|/api/v1/courses/:id/dismiss_migration_limitation_message`

Remove alert about the limitations of quiz migrations that is displayed to a user in a course

you must be logged in to use this endpoint

**Example Response:**

```js
{ "success": "true" }
```

### [Restore course version](#method.courses.restore_version) <a href="#method.courses.restore_version" id="method.courses.restore_version"></a>

[CoursesController#restore\_version](https://github.com/instructure/canvas-lms/blob/master/app/controllers/courses_controller.rb)

**`POST /api/v1/courses/:course_id/restore/:version_id`**

**Scope:** `url:POST|/api/v1/courses/:course_id/restore/:version_id`

Restore a course to a prior version.

**Request Parameters:**

| Parameter    | Type               | Description                                                                                                               |
| ------------ | ------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| `version_id` | Required `integer` | The version to restore to (use the syllabus\_versions include parameter in the course show API to see available versions) |

**Example Request:**

```bash
curl -X POST -H 'Authorization: Bearer <token>' \
https://<canvas>/api/v1/courses/123/restore/4
```

Returns a [Course](#course) object.

### [Get course copy status](#method.content_imports.copy_course_status) <a href="#method.content_imports.copy_course_status" id="method.content_imports.copy_course_status"></a>

[ContentImportsController#copy\_course\_status](https://github.com/instructure/canvas-lms/blob/master/app/controllers/content_imports_controller.rb)

**`GET /api/v1/courses/:course_id/course_copy/:id`**

**Scope:** `url:GET|/api/v1/courses/:course_id/course_copy/:id`

DEPRECATED: Please use the [Content Migrations API](https://developerdocs.instructure.com/services/canvas/content_migrations#method.content_migrations.create)

Retrieve the status of a course copy

**API response field:**

* id

The unique identifier for the course copy.

* created\_at

The time that the copy was initiated.

* progress

The progress of the copy as an integer. It is null before the copying starts, and 100 when finished.

* workflow\_state

The current status of the course copy. Possible values: “created”, “started”, “completed”, “failed”

* status\_url

The url for the course copy status API endpoint.

**Example Response:**

```js
{'progress':100, 'workflow_state':'completed', 'id':257, 'created_at':'2011-11-17T16:50:06Z', 'status_url':'/api/v1/courses/9457/course_copy/257'}
```

### [Copy course content](#method.content_imports.copy_course_content) <a href="#method.content_imports.copy_course_content" id="method.content_imports.copy_course_content"></a>

[ContentImportsController#copy\_course\_content](https://github.com/instructure/canvas-lms/blob/master/app/controllers/content_imports_controller.rb)

**`POST /api/v1/courses/:course_id/course_copy`**

**Scope:** `url:POST|/api/v1/courses/:course_id/course_copy`

DEPRECATED: Please use the [Content Migrations API](https://developerdocs.instructure.com/services/canvas/content_migrations#method.content_migrations.create)

Copies content from one course into another. The default is to copy all course content. You can control specific types to copy by using either the ‘except’ option or the ‘only’ option.

The response is the same as the course copy status endpoint

**Request Parameters:**

| Parameter       | Type     | Description                                                                                                                                                                                                                                                                                                                                                                  |
| --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source_course` | `string` | ID or SIS-ID of the course to copy the content from                                                                                                                                                                                                                                                                                                                          |
| `except[]`      | `string` | <p>A list of the course content types to exclude, all areas not listed will be copied.</p><p>Allowed values: <code>course\_settings</code>, <code>assignments</code>, <code>external\_tools</code>, <code>files</code>, <code>topics</code>, <code>calendar\_events</code>, <code>quizzes</code>, <code>wiki\_pages</code>, <code>modules</code>, <code>outcomes</code></p>  |
| `only[]`        | `string` | <p>A list of the course content types to copy, all areas not listed will not be copied.</p><p>Allowed values: <code>course\_settings</code>, <code>assignments</code>, <code>external\_tools</code>, <code>files</code>, <code>topics</code>, <code>calendar\_events</code>, <code>quizzes</code>, <code>wiki\_pages</code>, <code>modules</code>, <code>outcomes</code></p> |

***

This documentation is generated directly from the Canvas LMS source code, available [on Github](https://github.com/instructure/canvas-lms).
