Skip to main content
https://.thoughtindustries.com

Course Group Courses

Returns a paginated list of courses belonging to the specified course group

Returns a paginated list of courses belonging to the specified course group.

GEThttps://example.thoughtindustries.com/incoming/v2/courseGroups/:id/courses

Example request

curl "https://example.thoughtindustries.com/incoming/v2/courseGroups/:id/courses" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
iduuidYespathThe id identifier.
activeOnlybooleanNoqueryWhen true, returns only courses that are currently active.
pageintegerNoqueryThe page number to retrieve in the paginated result set.
perPageintegerNoqueryThe number of courses to return per page.

Example response

{
  "data": {
    "APICourseGroupCourses": {
      "pageInfo": {
        "perPage": 0,
        "currentPage": 0,
        "total": 0,
        "hasMore": true
      },
      "courses": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "title": "string",
          "slug": "example-slug",
          "status": "draft",
          "courseStartDate": "2024-01-01T00:00:00.000Z",
          "courseEndDate": "2024-01-01T00:00:00.000Z",
          "enrollmentStartDate": "2024-01-01T00:00:00.000Z",
          "enrollmentEndDate": "2024-01-01T00:00:00.000Z",
          "seatsLimit": 0,
          "seatsUsed": 0,
          "isDisplayCourse": true
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
pageInfoPageInfoPagination metadata for the result set.
pageInfo.perPageintegerNumber of courses returned per page.
pageInfo.currentPageintegerThe current page number in the result set.
pageInfo.totalintegerTotal number of courses across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
coursesAPICourseInfo[]Array of courses belonging to the course group.
courses.iduuidUnique identifier for the course.
courses.titlestringDisplay title of the course.
courses.slugstringURL-friendly identifier for the course.
courses.statusStatusPublication status of the course (e.g., draft, published).
courses.courseStartDateISO 8601 timestampDate and time when the course becomes available to learners, in ISO 8601 format.
courses.courseEndDateISO 8601 timestampDate and time when the course is no longer available to learners, in ISO 8601 format.
courses.enrollmentStartDateISO 8601 timestampDate and time when enrollment opens for the course, in ISO 8601 format.
courses.enrollmentEndDateISO 8601 timestampDate and time when enrollment closes for the course, in ISO 8601 format.
courses.seatsLimitintegerMaximum number of learners that can enroll in the course. A value of 0 indicates no limit.
courses.seatsUsedintegerNumber of seats currently occupied by enrolled learners.
courses.isDisplayCoursebooleanIndicates whether this course is designated as the display course for the course group.