Skip to main content

Module courses

Module courses 

Source

Structs§

CompleteCourseMetadata
Course
CourseAuditingData
CourseAuditingDataUpdate
CourseBreadcrumbInfo
CourseContextData
CourseCount
CourseInfo
CourseLanguageVersionNavigationInfo
All the necessary info that can be used to switch the user’s browser to a different language version of the course.
CourseMaterialCourse
A subset of the Course struct that contains the fields that are allowed to be shown to all students on the course materials.
CourseMetadata
CourseMetadataUpdate
CourseStructure
CourseUpdate
NewCourse
Represents the subset of page fields that are required to create a new course.

Enums§

CourseAiPolicy
The AI policy a teacher has selected for a course. Drives which variant of the student-facing AI usage notice is shown; NotSet (the default) keeps the generic default message.

Functions§

all_courses
all_courses_for_auditing
all_courses_user_enrolled_to
all_courses_with_roles_for_user
course_auditing_data_by_id
delete_course
get_active_course_id_by_slug
None when no active course has this slug.
get_active_courses_for_organization
get_active_courses_for_organization_count
get_all_language_versions_of_course
get_by_description_vectors
get_by_id_and_join_code
get_by_ids
get_by_organization_id
get_cfgname_by_tag
get_course
get_course_breadcrumb_info
get_course_by_slug
get_course_structure
Gets full course structure including all the pages.
get_course_with_join_code
get_metadata
get_nondeleted_course_id_by_slug
get_organization_id
insert
is_draft
is_joinable_by_code_only
organization_course_count
organization_courses_visible_to_user_paginated
search_courses_by_slug_or_name
Finds courses by slug or (fuzzy) name for the support chatbot’s find_course tool. Exact slug matches rank first, then substring name matches, then trigram similarity to name.
set_cheater_detection_enabled
Enables or disables suspected-cheater detection for a single course. Used by the seed routine to turn detection off for seeded courses (which are completed in seconds and would otherwise flag every seeded user); production courses keep the on-by-default value set at creation.
set_join_code_for_course
set_metadata
update_course
update_course_auditing_data
update_course_base_module_completion_count_requirement
update_course_embeddings