> ## Documentation Index
> Fetch the complete documentation index at: https://docs.soludesks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Course Content Workflow

> Create LearnHub courses, sections, and lessons through SoluDesks APIs.

LearnHub course content is organized as courses, sections, and lessons.

## Recommended Flow

<Steps>
  <Step title="Create categories">
    Categories help organize and filter courses.
  </Step>

  <Step title="Create a course">
    Create the course shell before adding sections.
  </Step>

  <Step title="Create ordered sections">
    Use the `order` field to place a section. If omitted, the backend places it at the end.
  </Step>

  <Step title="Create lessons inside sections">
    Lessons live under a course and section path. Supported external lesson types include text, video, and quiz lessons.
  </Step>

  <Step title="Attach completed upload sessions">
    Complete upload sessions before referencing upload IDs in lesson or course payloads.
  </Step>
</Steps>

## Section And Lesson Reordering

Sections and lessons accept an `order` field. Updating the order moves the item while preserving the rest of the course structure.

## Lesson Types

| Type    | Typical fields                                                        |
| ------- | --------------------------------------------------------------------- |
| `TEXT`  | `text_content`, `content_media`, resources                            |
| `VIDEO` | `video_content_url` or `video_upload_session_id`, captions, resources |
| `QUIZ`  | `quiz` payload or linked quiz data                                    |

<Note>
  For media and document files, prefer upload sessions over direct external URLs so SoluDesks can validate and manage the asset lifecycle.
</Note>
