Deletes a course and all related data (lessons, quizzes, enrollments, progress). Requires admin authentication. Payment and certificate records are preserved for historical purposes.
Array of lesson objects with title, type, content, quizzes, and resources
object
Enrollment, certificate, prerequisites, instructor, and quiz settings
Response
object
Updated course object
number
Course ID (useful for newly created courses)
Get Quiz Attempts
Retrieves the latest quiz attempt for a specific lesson.
Path Parameters
string
required
Course ID
Query Parameters
string
required
Lesson ID
Response
object
Latest quiz attempt object with question_order and answer_orders for shuffled quizzes
number
Current attempt number (0 if no attempts exist)
Get Quiz Results
Retrieves all quiz results for the authenticated user in a course.
Path Parameters
string
required
Course ID
Response
array
Array of quiz result objects
object
Results grouped by lesson ID
Submit Quiz Results
Submits quiz answers and calculates results. Handles quiz retakes and shuffle logic.
Path Parameters
string
required
Course ID
Request Body
number
required
Lesson ID
array
required
Array of answer objects with questionId and userAnswer
Response
string
Success message
array
Saved quiz result records
object
Show Quiz Statistics
number
Total number of questions
number
Number of correct answers
number
Maximum possible points
number
Points earned by the user
number
Percentage score (0-100)
Error Codes
Status Code
Description
200
Success
400
Bad Request - Invalid parameters
401
Unauthorized - Authentication required
403
Forbidden - Insufficient permissions
404
Not Found - Course not found
409
Conflict - Already enrolled
500
Internal Server Error
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"EaseLMS","description":"This documentation provides everything you need to set up and use EaseLMS, covering both self-hosted and cloud-hosted versions.","colors":{"primary":"#000000","light":"#ffffff","dark":"#000000"},"logo":{"light":"https://mintcdn.com/enyojoo-easelms-52-9/mlM-9wa9CH3mtdRp/images/EaseLMSbk.svg?fit=max\u0026auto=format\u0026n=mlM-9wa9CH3mtdRp\u0026q=85\u0026s=3540f2b6bf03d8cdf8c3e264836218e9","dark":"https://mintcdn.com/enyojoo-easelms-52-9/mlM-9wa9CH3mtdRp/images/EaseLMSwh.svg?fit=max\u0026auto=format\u0026n=mlM-9wa9CH3mtdRp\u0026q=85\u0026s=9aa67d0be15cc5f3deaae4f47c98c2c1","href":"https://www.easelms.org/"},"favicon":"/images/EaseLMSfavicon.png","appearance":{"default":"system"},"background":{"color":{"light":"#ffffff","dark":"#000000"}},"navbar":{"primary":{"type":"github","href":"https://github.com/enyojoo/easelms"}},"footer":{"socials":{"github":"https://github.com/enyojoo/easelms"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"enyojoo-easelms-52-9","hasAudioNarration":false,"actualSubdomain":"enyojoo-easelms-52-9","customDomains":["docs.easelms.org"],"gitSource":{"type":"github","owner":"enyojoo","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"entitlements":{},"buildId":"6ae94916b63426c73f14a4f9:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Resources","count":7},{"language":"default","tag":"Core Features","count":6},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Advanced","count":4},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Overview","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api/courses","slug":"/api/courses","pageMetadata":{"title":"Course API","description":"API endpoints for managing courses, lessons, and course content","href":"/api/courses","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"API endpoints for managing courses, lessons, and course content\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`list-courses`,children:`List Courses`}),`\n`,`\n`,_jsx(_components.p,{children:`Retrieves a list of published courses or all courses (admin/instructor only).`}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`recommended`,type:`boolean`,id:`param-recommended`,children:_jsxs(_components.p,{children:[`Returns only the 4 most recently published courses when set to `,_jsx(_components.code,{children:`true`})]})}),`\n`,_jsx(ParamField,{query:`ids`,type:`string`,id:`param-ids`,children:_jsx(_components.p,{children:`Comma-separated list of course IDs to filter by (e.g., “1,2,3”)`})}),`\n`,_jsx(ParamField,{query:`all`,type:`boolean`,id:`param-all`,children:_jsxs(_components.p,{children:[`Admin/instructor only: Returns all courses including unpublished drafts when set to `,_jsx(_components.code,{children:`true`})]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`courses`,type:`array`,id:`param-courses`,children:[_jsx(_components.p,{children:`Array of course objects`}),_jsxs(Expandable,{title:`Course Object`,children:[_jsx(ResponseField,{name:`id`,type:`number`,id:`param-id`,children:_jsx(_components.p,{children:`Unique course identifier`})}),_jsx(ResponseField,{name:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Course title`})}),_jsx(ResponseField,{name:`description`,type:`string`,id:`param-description`,children:_jsx(_components.p,{children:`Course description`})}),_jsx(ResponseField,{name:`image`,type:`string`,id:`param-image`,children:_jsx(_components.p,{children:`Course thumbnail image URL`})}),_jsx(ResponseField,{name:`price`,type:`number`,id:`param-price`,children:_jsx(_components.p,{children:`Course price in default currency`})}),_jsx(ResponseField,{name:`enrolledStudents`,type:`number`,id:`param-enrolled-students`,children:_jsx(_components.p,{children:`Total number of enrolled students (calculated dynamically)`})}),_jsx(ResponseField,{name:`totalHours`,type:`number`,id:`param-total-hours`,children:_jsx(_components.p,{children:`Total course duration in hours`})}),_jsx(ResponseField,{name:`totalDurationMinutes`,type:`number`,id:`param-total-duration-minutes`,children:_jsx(_components.p,{children:`Total course duration in minutes`})}),_jsx(ResponseField,{name:`lessons`,type:`array`,id:`param-lessons`,children:_jsx(_components.p,{children:`Array of lesson objects with id, video_url, text_content, and estimated_duration`})}),_jsx(ResponseField,{name:`settings`,type:`object`,id:`param-settings`,children:_jsx(_components.p,{children:`Course settings including enrollment mode, pricing, and certificate configuration`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://your-domain.com/api/courses?recommended=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response`,children:`Example Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"courses\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Introduction to Programming\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Learn the basics of programming\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/image.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`49.99`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enrolledStudents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`125`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalHours\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalDurationMinutes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`750`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lessons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#F44747`,\"--shiki-dark-font-style\":`inherit`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"settings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enrollment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"enrollmentMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"paid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`49.99`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`create-course`,children:`Create Course`}),`\n`,`\n`,_jsx(_components.p,{children:`Creates a new course. Requires admin authentication.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,required:true,id:`param-title-1`,children:_jsx(_components.p,{children:`Course title`})}),`\n`,_jsx(ParamField,{body:`description`,type:`string`,id:`param-description-1`,children:_jsx(_components.p,{children:`Course description`})}),`\n`,_jsx(ParamField,{body:`image`,type:`string`,id:`param-image-1`,children:_jsx(_components.p,{children:`Course thumbnail image URL`})}),`\n`,_jsx(ParamField,{body:`price`,type:`number`,id:`param-price-1`,children:_jsx(_components.p,{children:`Course price`})}),`\n`,_jsx(ParamField,{body:`enrollment_mode`,type:`string`,id:`param-enrollment-mode`,children:_jsx(_components.p,{children:`Enrollment mode: “free” or “paid”`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-2`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`course`,type:`object`,id:`param-course`,children:_jsx(_components.p,{children:`The created course object`})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-2`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://your-domain.com/api/courses`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": \"Advanced JavaScript\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"Master JavaScript concepts\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"price\": 99.99,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"enrollment_mode\": \"paid\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-course-details`,children:`Get Course Details`}),`\n`,`\n`,_jsx(_components.p,{children:`Retrieves detailed information about a specific course including lessons, quizzes, instructors, and prerequisites.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id-1`,children:_jsx(_components.p,{children:`Course ID or slug (e.g., “123” or “course-title-123”)`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-3`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`course`,type:`object`,id:`param-course-1`,children:[_jsx(_components.p,{children:`Detailed course object with lessons, creator, instructors, prerequisites`}),_jsxs(Expandable,{title:`Extended Course Object`,children:[_jsx(ResponseField,{name:`lessons`,type:`array`,id:`param-lessons-1`,children:_jsx(_components.p,{children:`Ordered array of lesson objects with quiz questions, resources, and content`})}),_jsx(ResponseField,{name:`creator`,type:`object`,id:`param-creator`,children:_jsx(_components.p,{children:`Profile information of the course creator`})}),_jsx(ResponseField,{name:`instructors`,type:`array`,id:`param-instructors`,children:_jsx(_components.p,{children:`Array of instructor profiles assigned to the course`})}),_jsx(ResponseField,{name:`prerequisites`,type:`array`,id:`param-prerequisites`,children:_jsx(_components.p,{children:`Array of prerequisite courses that must be completed first`})}),_jsx(ResponseField,{name:`enrolledStudents`,type:`number`,id:`param-enrolled-students-1`,children:_jsx(_components.p,{children:`Current enrollment count`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-3`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://your-domain.com/api/courses/introduction-to-programming-123`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`delete-course`,children:`Delete Course`}),`\n`,`\n`,_jsx(_components.p,{children:`Deletes a course and all related data (lessons, quizzes, enrollments, progress). Requires admin authentication. Payment and certificate records are preserved for historical purposes.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters-2`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id-2`,children:_jsx(_components.p,{children:`Course ID or slug`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-4`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Success confirmation message`})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request-4`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://your-domain.com/api/courses/123`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`save/update-course-draft`,children:`Save/Update Course Draft`}),`\n`,`\n`,_jsx(_components.p,{children:`Saves or updates a course draft including all lessons, quizzes, resources, prerequisites, and instructors.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-2`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`courseId`,type:`string`,id:`param-course-id`,children:_jsx(_components.p,{children:`Course ID for updates, or “new” for creating a new course`})}),`\n`,_jsx(ParamField,{body:`isPublished`,type:`boolean`,id:`param-is-published`,children:_jsx(_components.p,{children:`Whether the course should be published (visible to students)`})}),`\n`,_jsxs(ParamField,{body:`courseData`,type:`object`,required:true,id:`param-course-data`,children:[_jsx(_components.p,{children:`Complete course data including basicInfo, lessons, settings`}),_jsxs(Expandable,{title:`Course Data Structure`,children:[_jsx(ParamField,{body:`basicInfo`,type:`object`,id:`param-basic-info`,children:_jsx(_components.p,{children:`Title, description, thumbnail, previewVideo, requirements, whoIsThisFor, price`})}),_jsx(ParamField,{body:`lessons`,type:`array`,id:`param-lessons-2`,children:_jsx(_components.p,{children:`Array of lesson objects with title, type, content, quizzes, and resources`})}),_jsx(ParamField,{body:`settings`,type:`object`,id:`param-settings-1`,children:_jsx(_components.p,{children:`Enrollment, certificate, prerequisites, instructor, and quiz settings`})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`response-5`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`course`,type:`object`,id:`param-course-2`,children:_jsx(_components.p,{children:`Updated course object`})}),`\n`,_jsx(ResponseField,{name:`courseId`,type:`number`,id:`param-course-id-1`,children:_jsx(_components.p,{children:`Course ID (useful for newly created courses)`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-quiz-attempts`,children:`Get Quiz Attempts`}),`\n`,`\n`,_jsx(_components.p,{children:`Retrieves the latest quiz attempt for a specific lesson.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters-3`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id-3`,children:_jsx(_components.p,{children:`Course ID`})}),`\n`,_jsx(Heading,{level:`3`,id:`query-parameters-2`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`lessonId`,type:`string`,required:true,id:`param-lesson-id`,children:_jsx(_components.p,{children:`Lesson ID`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-6`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`attempt`,type:`object`,id:`param-attempt`,children:_jsx(_components.p,{children:`Latest quiz attempt object with question_order and answer_orders for shuffled quizzes`})}),`\n`,_jsx(ResponseField,{name:`attemptNumber`,type:`number`,id:`param-attempt-number`,children:_jsx(_components.p,{children:`Current attempt number (0 if no attempts exist)`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-quiz-results`,children:`Get Quiz Results`}),`\n`,`\n`,_jsx(_components.p,{children:`Retrieves all quiz results for the authenticated user in a course.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters-4`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id-4`,children:_jsx(_components.p,{children:`Course ID`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-7`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`results`,type:`array`,id:`param-results`,children:_jsx(_components.p,{children:`Array of quiz result objects`})}),`\n`,_jsx(ResponseField,{name:`resultsByLesson`,type:`object`,id:`param-results-by-lesson`,children:_jsx(_components.p,{children:`Results grouped by lesson ID`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`submit-quiz-results`,children:`Submit Quiz Results`}),`\n`,`\n`,_jsx(_components.p,{children:`Submits quiz answers and calculates results. Handles quiz retakes and shuffle logic.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters-5`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id-5`,children:_jsx(_components.p,{children:`Course ID`})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-3`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`lessonId`,type:`number`,required:true,id:`param-lesson-id-1`,children:_jsx(_components.p,{children:`Lesson ID`})}),`\n`,_jsx(ParamField,{body:`answers`,type:`array`,required:true,id:`param-answers`,children:_jsx(_components.p,{children:`Array of answer objects with questionId and userAnswer`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-8`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-1`,children:_jsx(_components.p,{children:`Success message`})}),`\n`,_jsx(ResponseField,{name:`results`,type:`array`,id:`param-results-1`,children:_jsx(_components.p,{children:`Saved quiz result records`})}),`\n`,_jsx(ResponseField,{name:`stats`,type:`object`,id:`param-stats`,children:_jsxs(Expandable,{title:`Quiz Statistics`,children:[_jsx(ResponseField,{name:`totalQuestions`,type:`number`,id:`param-total-questions`,children:_jsx(_components.p,{children:`Total number of questions`})}),_jsx(ResponseField,{name:`correctAnswers`,type:`number`,id:`param-correct-answers`,children:_jsx(_components.p,{children:`Number of correct answers`})}),_jsx(ResponseField,{name:`totalPoints`,type:`number`,id:`param-total-points`,children:_jsx(_components.p,{children:`Maximum possible points`})}),_jsx(ResponseField,{name:`pointsEarned`,type:`number`,id:`param-points-earned`,children:_jsx(_components.p,{children:`Points earned by the user`})}),_jsx(ResponseField,{name:`overallScore`,type:`number`,id:`param-overall-score`,children:_jsx(_components.p,{children:`Percentage score (0-100)`})})]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes`,children:`Error Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status Code`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`Success`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Bad Request - Invalid parameters`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Unauthorized - Authentication required`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Forbidden - Insufficient permissions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Not Found - Course not found`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:`Conflict - Already enrolled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Internal Server Error`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Course API","description":"API endpoints for managing courses, lessons, and course content","href":"/api/courses","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"List Courses","slug":"list-courses","depth":2,"children":[{"title":"Query Parameters","slug":"query-parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Example Request","slug":"example-request","depth":3,"children":[]},{"title":"Example Response","slug":"example-response","depth":3,"children":[]}]},{"title":"Create Course","slug":"create-course","depth":2,"children":[{"title":"Request Body","slug":"request-body","depth":3,"children":[]},{"title":"Response","slug":"response-2","depth":3,"children":[]},{"title":"Example Request","slug":"example-request-2","depth":3,"children":[]}]},{"title":"Get Course Details","slug":"get-course-details","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Response","slug":"response-3","depth":3,"children":[]},{"title":"Example Request","slug":"example-request-3","depth":3,"children":[]}]},{"title":"Delete Course","slug":"delete-course","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters-2","depth":3,"children":[]},{"title":"Response","slug":"response-4","depth":3,"children":[]},{"title":"Example Request","slug":"example-request-4","depth":3,"children":[]}]},{"title":"Save/Update Course Draft","slug":"save/update-course-draft","depth":2,"children":[{"title":"Request Body","slug":"request-body-2","depth":3,"children":[]},{"title":"Response","slug":"response-5","depth":3,"children":[]}]},{"title":"Get Quiz Attempts","slug":"get-quiz-attempts","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters-3","depth":3,"children":[]},{"title":"Query Parameters","slug":"query-parameters-2","depth":3,"children":[]},{"title":"Response","slug":"response-6","depth":3,"children":[]}]},{"title":"Get Quiz Results","slug":"get-quiz-results","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters-4","depth":3,"children":[]},{"title":"Response","slug":"response-7","depth":3,"children":[]}]},{"title":"Submit Quiz Results","slug":"submit-quiz-results","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters-5","depth":3,"children":[]},{"title":"Request Body","slug":"request-body-3","depth":3,"children":[]},{"title":"Response","slug":"response-8","depth":3,"children":[]}]},{"title":"Error Codes","slug":"error-codes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"enyojoo-easelms-52-9","siteName":"EaseLMS","title":"Course API - EaseLMS","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-04T00:10:33.795Z","originalFileLocation":"api/courses.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"API endpoints for managing courses, lessons, and course content\">\u003cmeta data-mint-head name=\"application-name\" content=\"EaseLMS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Course API - EaseLMS\">\u003cmeta data-mint-head property=\"og:description\" content=\"API endpoints for managing courses, lessons, and course content\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"EaseLMS\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.easelms.org/api/courses\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://enyojoo-easelms-52-9.mintlify.site/_mintlify/api/og/v2?division=Resources\u0026amp;title=Course+API\u0026amp;description=API+endpoints+for+managing+courses%2C+lessons%2C+and+course+content\u0026amp;theme=e9235748312b199396be373c\u0026amp;signature=d0951ceb4763f2d99e87dcd6d929acfcea0da9d90e4a5fcb6200fbb1eebce617\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Course API - EaseLMS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"API endpoints for managing courses, lessons, and course content\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://enyojoo-easelms-52-9.mintlify.site/_mintlify/api/og/v2?division=Resources\u0026amp;title=Course+API\u0026amp;description=API+endpoints+for+managing+courses%2C+lessons%2C+and+course+content\u0026amp;theme=e9235748312b199396be373c\u0026amp;signature=d0951ceb4763f2d99e87dcd6d929acfcea0da9d90e4a5fcb6200fbb1eebce617\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/enyojoo-easelms-52-9/qpopEwKfSMV0qrRS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"EaseLMS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.easelms.org/api/courses\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/courses.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.easelms.org/#organization\",\"name\":\"EaseLMS\",\"url\":\"https://docs.easelms.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/enyojoo-easelms-52-9/mlM-9wa9CH3mtdRp/images/EaseLMSbk.svg?fit=max\u0026auto=format\u0026n=mlM-9wa9CH3mtdRp\u0026q=85\u0026s=3540f2b6bf03d8cdf8c3e264836218e9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.easelms.org#website\",\"name\":\"EaseLMS\",\"url\":\"https://docs.easelms.org\",\"publisher\":{\"@id\":\"https://docs.easelms.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.easelms.org/api/courses#webpage\",\"url\":\"https://docs.easelms.org/api/courses\",\"name\":\"Course API\",\"description\":\"API endpoints for managing courses, lessons, and course content\",\"dateModified\":\"2026-03-04T00:10:33.795Z\",\"isPartOf\":{\"@id\":\"https://docs.easelms.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.easelms.org/api/courses#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.easelms.org/api/courses#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"EaseLMS\",\"item\":\"https://docs.easelms.org\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Course API\",\"item\":\"https://docs.easelms.org/api/courses\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.easelms.org/api/courses#article\",\"headline\":\"Course API\",\"name\":\"Course API\",\"description\":\"API endpoints for managing courses, lessons, and course content\",\"url\":\"https://docs.easelms.org/api/courses\",\"mainEntityOfPage\":{\"@id\":\"https://docs.easelms.org/api/courses#webpage\"},\"dateModified\":\"2026-03-04T00:10:33.795Z\",\"publisher\":{\"@id\":\"https://docs.easelms.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.easelms.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"EaseLMS\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"EaseLMS\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/courses.md","siteName":"EaseLMS","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Overview","href":"/api/overview","hidden":false},{"title":"Authentication","description":"Learn how to authenticate with the EaseLMS API using Supabase authentication tokens","href":"/api/authentication","hidden":false}]},{"group":"Resources","pages":[{"title":"Course API","href":"/api/courses","hidden":false},{"title":"Lesson API","description":"API endpoints for accessing lesson content, quizzes, and resources","href":"/api/lessons","hidden":false},{"title":"Enrollment API","href":"/api/enrollments","hidden":false},{"title":"User/Profile API","href":"/api/users","hidden":false},{"title":"Payment API","href":"/api/payments","hidden":false},{"title":"Certificate API","href":"/api/certificates","hidden":false},{"title":"Progress API","href":"/api/progress","hidden":false}]}]}]},"basePath":"","title":"Course API - EaseLMS","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}