courses

POST `/api/v0/main-frontend/courses` - Create a new course. # Example Request: ```http POST /api/v0/main-frontend/courses HTTP/1.1 Content-Type: application/json { "name": "Introduction to introduction", "slug": "introduction-to-introduction", "organization_id": "1b89e57e-8b57-42f2-9fed-c7a6736e3eec" } ```

Changed on
post/api/v0/main-frontend/courses

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

ask_marketing_consentboolean required
can_add_chatbotboolean required
copy_user_permissionsboolean required

If true, copies all user permissions from the original course to the new one.

descriptionstring required
flagged_answers_thresholdinteger nullable
is_draftboolean required
is_joinable_by_code_onlyboolean required
is_test_modeboolean required
is_unlistedboolean required
join_codestring nullable
language_codestring required
namestring required
organization_idstring uuid required
slugstring required
teacher_in_charge_emailstring required

Email of the teacher who is responsible for the course. Must be a valid email.

teacher_in_charge_namestring required

Name of the teacher who is responsible for the course. Must be a valid name.

Response

Created course

ai_policy'NotSet' | 'NoAi' | 'PlanningOnly' | 'Limited' | 'FullUse' | 'Required' required

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.

ask_marketing_consentboolean required
base_module_completion_requires_n_submodule_completionsinteger required
can_add_chatbotboolean required
chapter_locking_enabledboolean required
cheater_detection_enabledboolean required
closed_additional_messagestring nullable
closed_atstring date-time nullable
closed_course_successor_idstring uuid nullable
content_search_languagestring nullable
copied_fromstring uuid nullable
course_language_group_idstring uuid required
course_material_ai_instructionsboolean nullable
created_atstring date-time required
deleted_atstring date-time nullable
descriptionstring nullable
flagged_answers_skip_manual_review_and_allow_retryboolean required
flagged_answers_thresholdinteger nullable
idstring uuid required
is_draftboolean required
is_joinable_by_code_onlyboolean required
is_test_modeboolean required
is_unlistedboolean required
join_codestring nullable
language_codestring required
namestring required
organization_idstring uuid required
slugstring required
updated_atstring date-time required

Changes

    • ○

      added the optional property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status